small ball rotation animation inside the bigger ball

I want to rotate the ball inside the circle so it touches every corner of the bigger circle and animation continuous infinitely as it is a logo animation. body { background-color: #272727; height: 100vh; display: flex; justify-content: center; align-items: center; } .line { position: relative; width: 100px; height: 100px; border-radius: 50%; background-color: #fff; } .circle… Read More small ball rotation animation inside the bigger ball

Make the layout use the transformed coordinate (CSS)

Is there a way to make HTML/CSS to use the transformed coordinates in layout calculations? E.g. if I scale a div, I want the next div to automatically start on the scaled div’s boundary. body { padding:50px; } .a { width:100px; height:100px; background-color:red; transform:scale(1.2) } .b { width:100px; height:100px; background-color:blue; } <div class=”a”> hello </div>… Read More Make the layout use the transformed coordinate (CSS)

Can you have different transition times on the same transition property?

I have a settings button (img with an icon as the src) that I want to spin when the cursor is hovering, and then scale down and back to normal when the user presses on it. #settings-button:hover { transition: transform 1s ease-out; transform: rotate(360deg); } #settings-button:active { transition: transform 50ms ease-out; transform: scale(0.90); } With… Read More Can you have different transition times on the same transition property?

Apply transformation to CSS element after previous transformation ended

I am trying to chain together 2 transforms, but I want the 2nd one to begin after the 1st one ends. This is how I am trying to do it: .trailingNote { position:absolute; bottom:0px; background:black; width:20px; transition: transform 5s; transition-timing-function: linear; } .trailingNote-moveUp{ transform: scaleY(10) translateY(-200px); } Basically, I want the element to be scaled… Read More Apply transformation to CSS element after previous transformation ended

Remove background outline on the side of the border after skew transform

Here is my markup: <div class="labels"> <p>Very Funny</p> </div> Here is my CSS: div.labels p { background: red; border-left: 2rem solid white; border-right: 2rem solid white; color: white; font-family: ‘Bebas Neue’; text-transform: uppercase; line-height: 0.8; transition: 0.4s ease all; font-size: 4rem; -webkit-text-stroke: 2px white; letter-spacing: 2px; width: fit-content; padding: 1rem 2rem; transform: skew(-10deg); } Here… Read More Remove background outline on the side of the border after skew transform