8,570 questions
Advice
0
votes
4
replies
107
views
How can a CSS animation transform scale start from where a transition left off?
I have an HTML div that contains a photo, amongst other things. This div is movable by the user with a click and drag. When the div is clicked (:active), after a slight delay, I have it grow slightly ...
0
votes
0
answers
71
views
Why is my SVG animation not playing after embedded in an HTML-Element in TYPO3?
I want an animated Icon (path stroke animation). I used https://svgartista.net/ to get the the following codes. My collegue, who is not available for me anymore, told me to add ... somewhere. But I ...
4
votes
1
answer
144
views
How to emulate aspect ratio change using CSS animation?
I've tried researching using a couple of sources, but none of them focused on my problem specifically. I want to use CSS, if possible, to get a border effect that emulates some aspect ratio changes, ...
1
vote
2
answers
98
views
Trying to get a typing like effect for my personal website in HTML and CSS
I'm writing a simple webpage to advertise stuff I've done, so basically my GitHub page but with more presentational value, also using it to get more practice with HTML, where as I'm more familiar with ...
2
votes
0
answers
161
views
CSS animation flickering
I'm, creating the marquee of banners for my Shopify store, here is the code:
<div class="site-header__banners-wrapper">
<div class="site-header__banners">
...
0
votes
1
answer
55
views
How to add a second CSS property (color change) to a transform animation using classList.toggle? [closed]
I'm working on a simple project where I want to animate a div element. I'm trying to make a white box both move to the right and change color when it's clicked. I'm using a JavaScript click event to ...
1
vote
2
answers
256
views
How to make CSS infinite logo slider animation smooth without jumping?
I am creating a horizontal logo slider with multiple tracks.My goal is:
Even-numbered tracks should animate logos to the right.
Odd-numbered tracks should animate logos to the left.
Whenever I add new ...
0
votes
0
answers
84
views
Chrome Recalculate Style For All CSS Animations when mutating the DOM
I found chrome will recalculate style for all existing css animations whenever I mutate the DOM even if I have already add will-change: transform to make every animation in its own compositing layer.
&...
-1
votes
1
answer
83
views
Slider switch state modified by Javascript: animation is not triggered
When clicking on a slider switch (made with CSS + an input checkbox under the hood), the animation shows.
However, when setting the checked value from JS, the animation is not triggered.
How to solve ...
0
votes
0
answers
83
views
HTML + CSS "lag" in image showing / loading on website
I'm making simple slider for my website (css animation translate 0 to -10000px).
Have HTML like this (those are divs 1-20 and another time 1-20 for loop that):
//Before that I was making it by JS (...
0
votes
1
answer
92
views
Animate svg dashed line using GSAP and React
I'm working on animating dashed lines that extend from a central block to surrounding blocks. The goal is to make the dashed line appear as if it's gradually being filled with color, starting from the ...
3
votes
0
answers
95
views
Video frames shake/stutter when rendering HTML5 video to Canvas during CSS animation
Full JS from Github
Full css from Github
Full Html from Github
Video frames shake/stutter when rendering HTML5 video to Canvas during CSS animation
I'm experiencing video frame shaking/stuttering in a ...
0
votes
0
answers
39
views
Cross-Fade between images with CSS in loop without "fading to black" at keyframes
I would like to cross-fade between several images using CSS only, and then loop through that animation indefinitely. I used the methodology provided by Zack White in this question, which does fade ...
2
votes
4
answers
82
views
Need help in toggeling animation with CSS Web Animations API
I am trying to toggle an animation on an element using the CSS Web Animations API (WAAPI). Specifically, I want the animation to transition smoothly between two states on each button click — ...
1
vote
2
answers
85
views
How do I make my `<p>` match the width of its parent without affecting the parent
This is my minimal reproduction (only works in Chromium browsers due to calc-size):
.parent {
display: flex;
align-items: start;
}
.item {
display: flex;
flex-direction: column;
background: ...
1
vote
1
answer
55
views
In Bootstrap's Carousel- How Can I Style the First Indicator Differently On Load?
I have styled the carousel indicators to have a progress animation. The transition starts when the list item becomes active, and after 5 seconds it ends, the color disappears, and the next indicator ...
1
vote
1
answer
66
views
CSS: Animate background-size on hover
I have the below CSS / SCSS code:
I've set the background properties in the figure and only changed the background-size property for the hover... but it just jumps to the new size instantly instead of ...
0
votes
2
answers
58
views
Define both element dimensions based on one parent dimension
:root {
--success: #0c0;
}
button {
border: 2px solid;
border-radius: 10px;
cursor: pointer;
margin: 1em 0.5em;
padding: 10px 15px;
transition: transform 1s;
}
button:...
1
vote
2
answers
49
views
Looped background animation without setting px position
I have been using a preprocessor to generate looped background animation like this:
@keyframes anim
{
from { background-position: 0 0; }
to { background-position: ...
0
votes
1
answer
43
views
CSS animation through JS slows down and then stops when using translate with rotate
const box = document.querySelector('.box');
let id = undefined;
function animateTest() {
const style = window.getComputedStyle(box);
const matrix = new DOMMatrixReadOnly(style.transform);
const ...
1
vote
0
answers
85
views
SVG + CSS flame wave animation
I am using the example from https://codepen.io/BlackStar1991/pen/xxVOdJb
and I'm trying to turn that animation in a square and add some waves moving across it, much like in the gif below
here's what ...
1
vote
1
answer
73
views
Animate transform-origin while maintaining previous rotation position
I am trying to animate a "left" to "right"-side rotation using transform-origin. More specifically, I would like to maintain the left side's rotation position when the transform-...
-1
votes
1
answer
56
views
Animated SVG does not reach bottom of container
hello all and thanks for being here, lets see if you can clarify what is wrong here:
i am trying to add a simple animation of a snowflake falling from top to bottom within a container:
here link: ...
1
vote
2
answers
95
views
How do I reuse keyframes to play an animation backwards?
I have the following css:
@keyframes expandTop {
from {
height: 0;
}
to {
height: 100px;
}
}
&.expand {
animation: expandTop 0.5s ease-out ...
1
vote
0
answers
117
views
3D vertical flip animation on a div with a different backside?
I am basically trying to replicate an effect from a website (Awwwards link) where there seems to be a grid of divs that individually "flip" vertically on-hover and all together on-scroll.
...