Comments (4)
UPDATE:
even when removing all clearRect
calls, the glitch still occurs. Need to deep dive to find solution
from granim.js.
This issue is due to the animation
itself. Since it uses the requestionAnimationFrame
, changing customDirection too quickly will make it glitch on Safari.
To avoid this issue you should pause
the animation before updating the customDirection and play
it again once you called the changeDirection
function.
from granim.js.
Hey @rhanb,
I tried to reproduce the bug on Safari by visiting https://rhanb.me/, but everything looks fine.
Did you resolve the bug?
Can you reproduce the bug on jsfiddle?
from granim.js.
Hi @sarcadass ,
Yep I managed to fix the issue when i'm updating the customDirection I'm calling the pause
function and then play
once the new custom direction is applied.
I reproduced the bug right here: https://granim-safari-issue.stackblitz.io
from granim.js.
Related Issues (20)
- Fully dispose Granim to avoid memory leak in SPA HOT 3
- Use on other elements (not canvas) HOT 1
- Using on repeated elements HOT 1
- Change defaultStateName based on page HOT 1
- Feature request - Add easing options HOT 1
- "Uncaught TypeError: Cannot read property 'getElement' of null" Vue.js 2 - nuxt HOT 2
- Can't run the local server for the docs - contributing HOT 2
- Can we change de transitionSpeed dynamically? HOT 2
- HSLA support? HOT 2
- Just for to understand! HOT 1
- How to add more background images like slides HOT 1
- Angular integration HOT 2
- Thanks! HOT 1
- Change state on scroll HOT 1
- Feature request: dynamically change gradients
- Improving performance HOT 1
- 作者怎么可以联系到你 HOT 1
- Something wrong in vue3 HOT 1
- Use in Pure Node Js Script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from granim.js.