44,862 questions
-3
votes
0
answers
22
views
Optimizing weather animations (snow/rain/stars) for mobile - alternatives to 100+ CSS animated elements? [closed]
I'm building a weather-themed portfolio with interactive animations that must maintain performance on mobile devices (≥ iPhone 8/Android 9). While I've made optimizations, I'm hitting performance ...
0
votes
1
answer
50
views
How to hide background of matchedTransitionSource?
How can I hide the background of an animated NavigationLink while using the swipe-to-go-back gesture?
Here's what I currently have:
and what I want it to look like:
similar to the iOS Photos app. I'm ...
-1
votes
2
answers
76
views
Parameter not found although present in function call (don't understand the syntax) in python [closed]
This code does not compile and it gives an error message: TypeError: update() missing 1 required positional argument: 'posY'
Why is it missing posY although I have given this parameter to the function?...
-4
votes
0
answers
32
views
Some questions about backgrounds in Manim, like whether they can be dynamic [closed]
I have been playing around with Manim and I'm wondering what's the best way to display color patterns based on some logic. As an example, e.g. the Mandelbrot set or Julia sets can be visualized by ...
0
votes
1
answer
73
views
Keep two view positions synchronized during animation
I have a questions about syncing view positions during an animation change.
Here's the version I'm aiming for, but notice when the keyboard appears, the view height changes immediately with no ...
0
votes
0
answers
19
views
Unity ReadObject in profiler causing spike for sprite animations
So it appears in the profiler that whenever one of our sprite animations is played for the first time, it causes a spike on the CPU as the sprite atlases are loaded into memory. This can cause a ...
0
votes
1
answer
29
views
Setting the initial frame on Lottie animation based on the theme from localStorage in React
I have a React component that implements a dark mode toggle using the following Lottie animation:
https://lottiefiles.com/free-animation/button-switch-ui-AX5XJZQdq8
The animation has different frames ...
0
votes
1
answer
22
views
Improving JavaScript Refresh Rate Estimation with `requestAnimationFrame` [duplicate]
I've written a simple JavaScript function to estimate the screen's refresh rate using requestAnimationFrame:
let frameCount = 0;
let startTime = performance.now();
let refreshRateEstimate = 0;
...
0
votes
2
answers
87
views
A water animation with velocity heatmap and changing surface level in python
I am trying to make an animation of water from data I generated from a simulation.
I have two datasets (Hraw and Uraw) with identical dimensions with x-coordinates and time coordinates. Uraw also ...
0
votes
0
answers
53
views
Swift animation issue for creating a view pager
I have created a view pager and for showing a simple image banner but the issue is the animation is not working properly.
the issue is the transition b/w image 0 to image 1 is very fast without a ...
0
votes
0
answers
66
views
Animation on Scroll - Intersection Observer Javascript not working in WordPress?
I'm trying to get animate.css to fire up a CSS animation when the CSS selector comes into view when scrolling down a page.
The animations work fine at the top of the page - so that bit works okay. It'...
0
votes
0
answers
30
views
Build a full screen popup menu similar a iMessage App in SwiftUI
I'd like to create a full-screen popup menu similar to the iMessage app in SwiftUI.
The button + invoke iMessage menu: https://youtube.com/shorts/NfcEq6A1noM?si=ahH0Sf8W4OgQlpJj
This code opens the ...
0
votes
1
answer
51
views
FPS drop with Angular Gradient border during SwiftUI animation
I am adding a border and blur effect on a shape during an animation (root view appearing on page) and seeing FPS drops when using an AngularGradient as the color of the border. I dont see the drops ...
1
vote
1
answer
35
views
In Godot how can I make the animation wait a bit?
func Damage_animation() -> void:
sprite.modulate = Color(1, 0.3, 0.3, 0.6)
await get_tree().create_timer(2)
sprite.modulate = Color(1, 1, 1, 1)
This function is called when a bullet ...
0
votes
1
answer
47
views
Can I play random attack animations without making state for each animation?
My player can use X weapons and for each weapon type I have X attack animations
Is there is a way to change state’s motion in runtime? So I don’t need to create 4+ states for each attack animation
...