Comments (5)
Hmm sounds a bit weird and I'm not sure if I understand you correctly, but I'm giving it a shot.
- Could it be possible that the hidden elements move some other elements up which make them appear in the viewport on window load?
- Could it be possible that before you add the
hidden
class the elements are visible in the viewport and therefore getting a class from the checker?
In both scenarios we're talking about milliseconds work.
from viewport-checker.
If div has class that has "display: block" or "display" anything other than "none" it will only show after entering the viewport. If div has class that has "display: none" it loads immediately. You can see the problem here:
http://www.davidsiglinphotography.com/Test/
Scroll down one page to the Lifestyle section. Notice that "Lifestyle & Portrait" fades in while the paragraph below does not. That's because the paragraph below fades in immediately on website load. The paragraph below "Lifestyle & Portrait" has the property "display: none" which then gets overridden when the class "visible" is applied.
from viewport-checker.
I use opacity: 0 to hide elements.
from viewport-checker.
i have this problem, not exist a solution?
from viewport-checker.
I'm closing this issue due to inactivity (from my side, apologies). Please comment if this issue is still relevant so I can re-open and investigate it.
from viewport-checker.
Related Issues (20)
- Is it possible to trigger children element (with it's animations) when the parent element is triggered? HOT 4
- scrollHorizontal not working for me HOT 1
- Does not work in Chrome 61 beta HOT 2
- Firefox pre-loading elements, ruining the surprise HOT 1
- Not triggering when scrolling using Chrome
- Viewport Checker is not working with latest version of Google Chrome (Version 61.0.3163.79 (Official Build) (64-bit)) HOT 11
- Viewport Checker is not working with Chrome Canary HOT 1
- Chrome v61 - Element detection issues HOT 1
- Does not work in the new version Google Chrome HOT 6
- The latest version (1.8.8) is not available on NPM HOT 2
- Add class to elements already "overscrolled" HOT 1
- jQuery-viewport-checker not working with latest version of Chrome, Version 63.0.3239.132 (Official Build) (64-bit) HOT 2
- viewportchecker/ClassToAdd not working on google chrome HOT 3
- Sequential animation by adding classes with delay HOT 1
- Missing doctype causes add class to be applied to all elements on load HOT 1
- Add data-attribute for delay start animation HOT 1
- Not working with scrollBox: window
- Demo website HOT 2
- Issues with Vue Directive HOT 1
- Since V2 classes often don't get added on scroll HOT 2
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 viewport-checker.