Comments (5)
Which browser is this happening in? Overflow hidden would stop the flashing scroll bar however wouldn't be compatible with many sites out there. There is an offset for the flakes
// This will reduce the horizontal scroll bar from displaying, when the effect is applied to the whole page
if($(element).get(0).tagName === $(document).get(0).tagName){
widthOffset = 25;
}
You can try increasing that to lower the chance of them running offscreen.
from jquery-snowfall.
I have that bug in Chrome v38.0.2125.111 with the demo page too. (horizontal and vertical)
from jquery-snowfall.
There is a bug with resizing where the flakes don't always update their boundaries. I have a branch which addresses this by slightly delaying the resetting of the height and width attributes and by allowing the flake positions to 'scale' horizontally if you resize the window.
However, if you enable snow collection I don't think the canvas is currently doing anything to reposition itself.
from jquery-snowfall.
You're right about the canvas elements, the canvas implementation was kind of half assed, I've been half tempted to take it out and just create a separate repo for that.
Not sure if I noticed the fix for the scrollbar in the merge.. hopefully I didn't overwrite it with any of my changes.
from jquery-snowfall.
I haven't noticed the scroll bars since @Silarn code was merged going to close this for now.
from jquery-snowfall.
Related Issues (20)
- Snow Globe Effect HOT 1
- Cannot read property 'x' of undefined HOT 1
- Feature request: rotation of images as they fall HOT 2
- cdnjs HOT 3
- Bower config - 'main' property
- Position error HOT 2
- Stop after n seconds? HOT 3
- Does it work with jquery version 1? HOT 2
- Jquery, Bootstrap, custom jscripts = not working?
- Change Positioning from top/left to transform HOT 2
- Collect doesn't seem to be working HOT 3
- Possible to have the snowflakes go UP (backwards) or a certain direction?
- Missing jQuery in Example Index HOT 2
- AJAX content
- Scrollbar flashing referred to in Issue #21 appears to still exist.
- Option to exclude mobile devices HOT 3
- Really high CPU load with just a few flakes
- Only show image base snowflakes after the image has fully loaded HOT 1
- Without jQuery Version HOT 2
- Can I use snowfall.js for commercial purposes?
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 jquery-snowfall.