Dynamically moving a fixed position button?

Trying to figure out the semantics behind why this works. In this admin dashboard there’s a settings button that is fixed to the right side of the UI. https://www.akveo.com/ngx-admin/pages/layout/stepper If we click the settings button the settings panel expands and this moves the button. However if we look at the right css position (With the… Read More Dynamically moving a fixed position button?

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

how to translateX an element proportionally to its own width and not its parent or screen width with pure CSS

I am trying to adapt this pure CSS text scroll tutorial to my project. I found that it does not work when scrolled element width is longer than its container width. It stops scrolling too early while element is still visible. I examined it a bit and managed to identify the problem but it is… Read More how to translateX an element proportionally to its own width and not its parent or screen width with pure CSS