Skip to Content

Dr Dave Barr presents fun with CSS cursors

Introduction

I missed out on the whole 90’s fad of adding custom cursors to websites as I never really saw the point. This has been further strengthened by the knowledge that they are a terrible idea. Bad for accessibility in a nutshell.

Having said all that I still wanted to have a play, get it out of my system if you will.

Star Trek inspired custom CSS cursors
Star Trek inspired custom CSS cursors
Hover over this section to see the default cursor.
default cursor
Hover over this section to see a simulated zoom-in.
zoom-in cursor

I had a dream…

Yet another bonkers example of WebDev Midnight Madness. The concept of creating a hybrid theme came to me whilst struggling to sleep, what if I mixed a retro Apple Mac OS 9 GUI with CSS cursors from Star Trek?

Yeah, that died a death real fast in the cold light of day. However it struck me that I could have a play and also illustrate what a phenomenally bad idea it is to let non #a11y aware designers have access to what is essentially core OS functionality.

Build process

After a quick search for “Star Trek Icon Fonts” I found the TrekArrowheads Font by Pixel Sagas. Installed into Apple Font Book, created a Photoshop Doc where I selected the three symbols I wanted to work with. Added white stroke to each and rotated the default ‘arrow’ icon a tad to emulate the original.

I wasn’t after perfection. In fact, far from it.

Why it’s such a bad idea

Temptation creeps in to get users to bend to your imagination. I deliberately chose three icons that didn’t actually look anything like the originals to illustrate that defining your own graphical language without due care and attention is a really, really bad idea. There are other reason why and I invite you again to read Eric Bailey’s don’t use custom CSS mouse cursors post.

Download sample code

I’ve assembled all the parts so that you can play with them. The standard – software is provided “as is”, without warranty of any kind – applies here.

Zip File Info
/imgs/default.png
3.2kB
/imgs/fun-with-css-cursors.png
30.5kB
/index.html
1.4kB
/imgs/pointer.png
4.2kB
/readme.txt
460B
/style.css
2.2kB
/imgs/zoom-in.png
4.6kB
File: barrd-fun-css-cursors.zip
Details: 7 files @ 49.1kB

That’s all folks

Had a laugh putting this all together, a couple of hours well spent relaxing and playing with Star Trek related material. And, that’s another thing off my bucket-list, no need to ever go back to using it again as I’ve sated my desire to give it a try.

// End of Project

More Information

Dave A.K.A. 'barrd'

Dave is a Bristol based Scottish Expat who has 20+ years experience of web development. Loves playing guitar, reading books, watching Sci-Fi and tinkering with tech.

About Dave A.K.A. 'barrd'

Image for Dave A.K.A. 'barrd'
Dave is a Bristol based Scottish Expat who has 20+ years experience of web development. Loves playing guitar, reading books, watching Sci-Fi and tinkering with tech.

Read more about Dave