[Tutorial][CSS] Spinning Wheel

monoVertex

I'm back!
Reaction score
460
I have created an interesting and very fluid effect in CSS3 and I wanted to share it, so I put together a tutorial / demo.

You can find it here.
This is the finished demo.

And here is a GIF displaying the functionality:

7.gif


What do you think about it? I'd also appreciate feedback on the tutorial and code themselves :D.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Looks nice on one hand, and useless on the other. I dont know what good this would ever be.
 

monoVertex

I'm back!
Reaction score
460
It can be used as a menu, because it also stops when you actually hover it. If you make everything larger, it can serve as a website menu. Trust me, I've seen more elaborate menu effects that this.

On my website, I use it as a purely informational UX element. It shows some of the technologies used in the projects I showcase in the portfolio, in the form of technology logo and the title as a tooltip on icon hover.

Or you can make a stylized planet animation, for some website intro. Same goes for an atom model. The show-on-hover part is optional.

The modern web is in search of fluid, simple and nice looking effects. You can apply that to pretty much everything, the only limit is the imagination.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Yeah, I would hate that. Its horrible for an interface, makes things more complicated instead of simple, probably not a nice thing for a slow old netbook either. Things like this make browsing a pain. Call me oldfashioned but I want my GUI to be plain and simple and most of all: plain and simple.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Cool effect. It flickers a little bit on chrome though (for me), causing it to look a little weird. Runs just fine on safari though.
 

monoVertex

I'm back!
Reaction score
460
There's an image missing.

Hum, you are right. I'll fix that ASAP.

EDIT: fixed.

Cool effect. It flickers a little bit on chrome though (for me), causing it to look a little weird. Runs just fine on safari though.

Does it flicker when hovering the icon themselves or the rotation flickers in general?

Yeah, I would hate that. Its horrible for an interface, makes things more complicated instead of simple, probably not a nice thing for a slow old netbook either. Things like this make browsing a pain. Call me oldfashioned but I want my GUI to be plain and simple and most of all: plain and simple.

The ease of use depends on how it's implemented, really.

I tested in on my slow netbook and it runs just fine. I agree, the demo has a little lag, but there are 6 effects at the same time there. The beauty of it is that it's 99% CSS and browsers tend to render these effects faster and more efficient. If I would have done it in JS, it would have lagged badly.

I made the demo mainly to explain some techniques, to show that it can be done CSS-only and to show how can you fix some issues that arise when coding this. No one is forced to use the effect exactly in this form.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Yes. I know what you mean. You just want to show it because you think its a cool effect.
But its not practical in my opinion. I wouldnt want that on a website. Icons hiding behind each other, spinning around, never being at the same spot where I last clicked them.
 

monoVertex

I'm back!
Reaction score
460
Yes. I know what you mean. You just want to show it because you think its a cool effect.
But its not practical in my opinion. I wouldnt want that on a website. Icons hiding behind each other, spinning around, never being at the same spot where I last clicked them.


That was my point, you can discard the animations if you want.

Placing the icons in a radial arrangement without JavaScript is tricky by itself and my tutorial shows how to do that as well.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
this just blows my mind. never knew css could do this....
I am to early in my practice of css to use your guide, as doing more basic exercises would help me more, and i am diving in to many other things..

But really cool to learn about less/sass while reading though how you did it. (If time...ill finish your guide and post my version of it :) )
 

monoVertex

I'm back!
Reaction score
460
To be honest, this guide assumes the reader has a relatively good grasp of CSS already. If you get stumped on anything, don't hesitate to ask.

And yes, LESS / SASS are the way to go in today's CSS coding. I would never code vanilla CSS anymore.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    that sucks i bet they are expensive
  • Varine Varine:
    Not really
  • Varine Varine:
    The entire hot end is like 20 dollars, I just can't get anymore until next week
  • Varine Varine:
    I ordered like five blocks for 15 dollars. They're just little aluminum blocks with holes drilled into them
  • Varine Varine:
    They are pretty much disposable. I have shitty nozzles though, and I don't think these were designed for how hot I've run them
  • Varine Varine:
    I tried to extract it but the thing is pretty stuck. Idk what else I can use this for
  • Varine Varine:
    I'll throw it into my scrap stuff box, I'm sure can be used for something
  • Varine Varine:
    I have spare parts for like, everything BUT that block lol. Oh well, I'll print this shit next week I guess. Hopefully it fits
  • Varine Varine:
    I see that, despite your insistence to the contrary, we are becoming a recipe website
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top