Skip to main content
0 votes
2 answers
48 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:...
Eric Wang's user avatar
0 votes
1 answer
63 views

Why do my floating leaves appear at the same time and barely move?

I'm trying to create a floating leaf animation using CSS and a parallax effect with JavaScript. My goal is to have multiple leaves float in slightly different paths and timings across the screen. But ...
Ellie Dung's user avatar
0 votes
0 answers
25 views

How to properly handle CSS animations in sync with JavaScript events? [closed]

I'm working on a project where I need to trigger a CSS animation in response to a JavaScript event, but I'm running into issues where the animation either doesn't trigger correctly and plays multiple ...
Gulzar Fatima's user avatar
1 vote
2 answers
32 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: ...
Shtole's user avatar
  • 357
0 votes
0 answers
16 views

View transition with circular mask glitches in Chrome

I want to implement a simple view transition animation where a circular mask slowly reveals the new page. The animation glitches when running it in Google Chrome (Version 134.0.6998.166 arm64). I don’...
Pepa Zdepa's user avatar
0 votes
1 answer
41 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 ...
Sidharth Bajpai's user avatar
0 votes
0 answers
16 views

Stuck at implementing some Scroll-Driven Animations

I'm trying to implement the animations of the following video using scroll-driven animations (scroll-driven-animations.style). I have the text part, but I am stuck with the images (the ones with ...
Germán Freixinós's user avatar
1 vote
0 answers
55 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 ...
man's user avatar
  • 508
0 votes
0 answers
31 views

KeyFrame detection in python

I'm building a RAG system for a platform where the primary content consists of videos and slides. My approach involves extracting keyframes from videos using OpenCV diff = cv2.absdiff(prev_image, ...
Daniel's user avatar
  • 11
1 vote
1 answer
61 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-...
FakeEmpire's user avatar
0 votes
1 answer
56 views

How can I prevent SVG elements from overflowing?

I have an SVG map of Africa, and I want to embed a second SVG within it. However, I’m unable to do so due to an overflow issue. I suspect that I might be facing a clipping or masking problem. Since ...
Pavel's user avatar
  • 1
-1 votes
1 answer
47 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: ...
JGarnie's user avatar
  • 612
0 votes
1 answer
66 views

Angular - Infinite animation of moving lines

I am trying to render an infinite animation of lines going from page bottom to top. Here is the result : https://stackblitz.com/edit/angular-xyke249e?file=src%2FAnimationPage%2Fanimation.component.ts ...
Foxhunt's user avatar
  • 922
1 vote
2 answers
56 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 ...
Renaud's user avatar
  • 4,678
5 votes
2 answers
107 views

How to create button with multiple pulse effects

I want a button which pulses multiple times (three or so), like in this Dribble video demo. The button pulses should have an interval between pulses of about 300-400ms, and also if the twisting effect ...
Vasil Nikolov's user avatar

15 30 50 per page
1
2 3 4 5
515
X