Welcome to pushIn-js Discussions! #42
Replies: 2 comments 3 replies
-
To kick this off, I'm Nathan Blair, creator of PushIn.js. I am currently a web developer on the marketing team at Indeed. On my spare time I love watercolor painting, and I am a husband, dog and cat dad 😼 This plugin was the first thing I built as a beginner coder, and it has seen many changes and improvements over the years! I am thrilled to see that it has been useful for other developers out there, and would love to hear about what it's being used to create. 🙌 |
Beta Was this translation helpful? Give feedback.
-
Hey Nate quick question. Got everything to work fine except I was wondering, is there a way to have the in/out points, the screen position, based on a container or a div element rather than the very top of the page/browser? Your "target" documentation doesn't seem to be doing the trick for me. Basically I want to be able to scroll down a website page like normal, and then all of a sudden when it hits a full page width div element (like a bootstrap row lets say) the animation triggers and works its way through from there, when the animation completes the regular page starts scrolling again. IOW I'd like to be able to have data-pushin-from="350" be 350 pixels down my div (that may be thousands of pixels down my page) instead of 350 pixels from the very top of the entire page. Again I "almost" have this working, but the animation is starting at the top of the webpage (invisibly behind my regular website page elements) and then by the time I get to the designated element for the animation (div class="pushin) half the animation is already over (because it was happening behind the scenes as the user was scrolling down the webpage, prior to reaching the desired section. Any help appreciated. (Just a regular normal webpage html/css and linking to your hosted unpkg scripts) |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We're using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you're working on!
Beta Was this translation helpful? Give feedback.
All reactions