Comments (3)
As a counterpoint @N1kto, if this library feature checked IntersectionObserver
and used it when available, you would get the assumed performance improvements of that API when available... but also achieve broader browser support by falling back to the methods currently in use here.
It is a further benefit to the consumer to not have to have multiple implementations within the codebase.
from emergence.js.
I agree with @mjsisley. As a programmer I'd like to be able to code again a consistent API (e.g. the emergence.js API) whilst knowing that the performance benefits of IntersectionObserver are being leveraged when they are available.
from emergence.js.
IMHO this lib is kind of alternative to IntersectionObserver
, so there is not much sense using the latter inside the lib.
The value of this lib is that it serves same purposes as IntersectionObserver
while grounding on very basic browser API and thus having much broader browser support.
I think it's up to consumer (you) to decide whether to use IntersectionObserver
when it's available or this lib :)
from emergence.js.
Related Issues (18)
- Reset: false not working? HOT 2
- Uncaught TypeError: viewport.addEventListener is not a function... HOT 2
- Watched elements not visible when scrolled to on mobile HOT 1
- destroy method HOT 1
- init inside imagesloaded callback HOT 2
- Feature Request? HOT 2
- Define "visible" HOT 2
- Use native Intersection Observer HOT 2
- Per-item options HOT 2
- Trigger animation when div is visible HOT 2
- DOM re-render implications? HOT 1
- Offset in percentage or em?
- Multiple Instances of `emergence`?
- Staggering `data-emergence` Toggle
- Property override support per element HOT 1
- Doesn't work on load HOT 1
- Current project status 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 emergence.js.