34 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
19
views
Can I export animation data from Chrome DevTools Animations panel (timing, easing, keyframes)?
I recently discovered the Animations panel in Chrome DevTools while debugging CSS animations.
What I would like to do is export the animation data (such as timing, easing functions, delays, keyframes, ...
1
vote
0
answers
63
views
Why is cubic bezier animation different in CSS vs JavaScript? [duplicate]
I discovered a curious issue when moving an animation with a cubic bezier from CSS into JavaScript: the timing was different. See example below:
(tested in both Chrome and Safari)
It’s not a loading ...
2
votes
4
answers
92
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 — ...
0
votes
1
answer
59
views
Detect when a new Web Animation API is created
Is it possible to detect when a new Web Animation API is created? Something like an event-listener on the creation of Web Animation.
I guess that by pooling document.getAnimations() every few ms it ...
0
votes
0
answers
171
views
Web Animations API causing detached elements in Chrome DevTools Memory panel
Web Animations API causing detached elements in Chrome DevTools Memory panel
Issue
When I use the Web Animations API, I notice several detached objects in the Memory panel of Chrome DevTools. I’m not ...
-2
votes
1
answer
201
views
Web Animation API: the Promise of animation.finished is always pending
after using animation.cancel(), the Promise of animation.finished is always pending, then I cant use Promise to wait the animation fulfilled.
I tried using every methods I can, such as animation....
0
votes
1
answer
161
views
How to use Web Animations API with Vue
The Vue3 docs uses css to efffect transitions, but I wanted to try the (relatively new) Web Animations API instead - partly because I have trouble using variables in CSS.
The following code works:
<...
0
votes
1
answer
101
views
Web Animations API - How to solve parent rotate + child translate in svg elements?
Whenever I group (<g>) two or more SVG elements (e.g. two rects) and transform this group through rotation, I'm unable to correctly transform the individual children.
After a group rotation, an ...
0
votes
1
answer
230
views
Web animation API event
<!DOCTYPE html>
<html>
<body>
<div id="div1"></div>
</body>
<script>
const Divtarget = document.getElementById("div1");
class ...
0
votes
1
answer
275
views
Web Animation API with Scroll-driven animation is only animating (fading in) one item instead of all items in the forEach
This is a fairly new experimental animation needing a polyfill (https://rawcdn.githack.com/flackr/scroll-timeline/55c54c10ccf3308f36c09cbca4935286fe99f14f/dist/scroll-timeline.js), but according to ...
0
votes
1
answer
68
views
Optimize simple CSS / WebAnimation, eg scale()
I've tried different solutions to animate a sidenav bar rise from bottom right corner. This is the last solution, maybe the best one ( because i'm animating the transform scale() ) in the previous ( ...
0
votes
0
answers
100
views
Custom Cursor built using Web Animations API doesn't use the correct "easing" and "duration"
I am trying to build a custom cursor specifically using the Web Animations API in JavaScript. I've tried using both the mousemove event and requestAnimationFrame() to make this work. However, the ...
0
votes
1
answer
448
views
Animating a value of a tag attribute
Is there a way to animate a value of dy attribute of SVG's tspan using JavaScript, ideally using Web Animations API?
The value of dy is known to be animatable using <animate /> element (as seen ...
2
votes
1
answer
226
views
stack/add/composite/accumulate multiple transform=translate animations in the Web Animation API
I have been running around in circles
I use the Web Animation API transform:translate() to make my player run around the bases.
runto("first").then(() => runto("second")); does ...
2
votes
1
answer
117
views
Do I include vendor prefixes when animating with WAAPI animate()?
Do I have to also include vendor prefixes for transform? Or is it handled automatically? If I have to include vendor prefixes for the animation how do I do it?
This is my current code:
document....