---
title: "Nic (@nicm42) | Hashnode"
description: "This week I learnt... Read the latest articles by Nic on Hashnode."
url: "https://hashnode.com/@nicm42"
---

@nicm42

# Nic

@nicm42 · England · Joined October 2020

This week I learnt...

[Website](https://nicm42.github.io/)

### [Navigation underline animation](https://blog.nicm42.me.uk/navigation-underline-animation?utm_source=hashnode&utm_medium=feed)

I recently had a design with three tabs and an underline that indicated which was active. I've seen an animation where the line moves between the tabs, but hadn't used it before. So I decided to try i

2 min read · [blog.nicm42.me.uk](https://blog.nicm42.me.uk/navigation-underline-animation?utm_source=hashnode&utm_medium=feed)

[Jul 26](https://hashnode.com/posts/navigation-underline-animation/6a65ea746f1b5a637b3031f4)

### [Trying AI autocomplete](https://blog.nicm42.me.uk/trying-ai-autocomplete?utm_source=hashnode&utm_medium=feed)

I've used autocomplete before in coding - after all, why type more than you need to? But recently I downloaded Cursor and tried out the AI autocomplete, which can add many lines at a time. And did I f

2 min read · [blog.nicm42.me.uk](https://blog.nicm42.me.uk/trying-ai-autocomplete?utm_source=hashnode&utm_medium=feed)

[Apr 12](https://hashnode.com/posts/trying-ai-autocomplete/69dbc373aadf1107e2ff9383)

### [Moving elements with JavaScript](https://blog.nicm42.me.uk/moving-elements-with-javascript?utm_source=hashnode&utm_medium=feed)

Recently I had a situation where there were two elements, A and B, each of which contained a whole load of things. On mobile A was at the top and B was below it. But on desktop B was on the left and A

2 min read · [blog.nicm42.me.uk](https://blog.nicm42.me.uk/moving-elements-with-javascript?utm_source=hashnode&utm_medium=feed)

[Mar 2](https://hashnode.com/posts/moving-elements-with-javascript/69a5cb5ee8e1f9df72cb8f2b)

### [Transitioning display: none](https://blog.nicm42.me.uk/transitioning-display-none?utm_source=hashnode&utm_medium=feed)

I recently had cause to transition display: none. It’s not yet working in all browsers, but when I tried it I found the effect was so subtle that no one would notice the difference. In this example I had to change the transition time to 1 second in o...

2 min read · [blog.nicm42.me.uk](https://blog.nicm42.me.uk/transitioning-display-none?utm_source=hashnode&utm_medium=feed)

[Nov 22, 2025](https://hashnode.com/posts/transitioning-display-none/6921c7e1df87d26430c3b1f5)

### [Styling sibling hover and none hover](https://blog.nicm42.me.uk/styling-sibling-hover-and-none-hover?utm_source=hashnode&utm_medium=feed)

I recently had some complicated CSS to get my head around. I have a list of links which I want to style when they’re being hovered/focus on. But, if none of them are being hovered or focused, then I want to style the first one in the list. The HTML <...

2 min read · [blog.nicm42.me.uk](https://blog.nicm42.me.uk/styling-sibling-hover-and-none-hover?utm_source=hashnode&utm_medium=feed)

[Sep 14, 2025](https://hashnode.com/posts/styling-sibling-hover-and-none-hover/68c6a66c3115ae4ea67c07da)
