Comments (3)
Good find, I forgot to consider this when moving to percentage-based top/left positioning. This should be fixed now, and snowStorm will automatically flip usePixelPosition on if the body is position: relative at init. Let me know if it's still an issue for you.
from snowstorm.
Thanks for the quick fix! Works great.
from snowstorm.
Thanks for reporting the issue, I had overlooked that in the last release and forgot that %-based top/left values would do that when the parent element is relative. This also affected cases where a user may have specified an element other than the body to append to, using targetElement.
from snowstorm.
Related Issues (20)
- register snowstorm to http://bower.io/ HOT 4
- excludeMobile property assigned twice in "user-serviceable" section HOT 3
- Snow speeds up randomly HOT 2
- Canvas takes lots less CPU HOT 7
- z-index of other elements "overlap" the snowflakes HOT 1
- Infinite scroll problem (no stick) when targetElement height > window height
- doesn't work in my mobile browser HOT 2
- Control the Wind direction and snowflakes dimensions HOT 2
- Bring snow to front or on top ALWAYS HOT 2
- Change config after running?
- low performance on Firefox Quantum HOT 3
- Do you accept PR that actually fix performance? HOT 4
- Different Snow color on mobile HOT 1
- snow only over one image HOT 2
- Can't get custom snow
- Clipping on Unicode HOT 3
- snow stops when clicking into an iframe HOT 1
- Christmas light: re-render after browser window resize
- Crediting on my website HOT 1
- Issues with sticking when targetelement is used HOT 1
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 snowstorm.