KillandCry
KPCKevin Powell - Community
•Created by KillandCry on 2/8/2024 in #front-end
Rotate Hexagons by their centers
So, I managed to build a hexagon with css only, but now, I can't figure out, how i can rotate the hexagon by it's own center.
Everything i tried rotates the hexagon by a corner.
Here is the code:
https://codepen.io/Ionut-Sanda/pen/ZEPjXKp
HTML:
CSS:
Any ideea is welcome
1 replies
KPCKevin Powell - Community
•Created by KillandCry on 2/7/2024 in #front-end
Animation on svg icons
Hello coders.
Unfortunately I lost too much time on this, and can't figure it out.
Given the following codepen:
https://codepen.io/Ionut-Sanda/pen/ZEPjXKp?editors=1100
I want to add some floating animations on each hexagon.
The problem:
I have some transform and scale on each path individually and, if i use the following CSS code, each individual hexagon, will be moved to the coordinates.
I tried multiple things, like adding the style animation to the tag.
Anyone has any idea how can i achieve this? Unfortunately, i need to do this using only html and css.
16 replies