- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
left/right arrows + additional javascript #717
Comments
(sorry for the double post do these have to be approved before they show up?) |
Still not sure where this post is showing up but if anyone can see this, help on this would be really awesome, it's my last major problem to solve (I think) I made some progress when I learned about the addEventListener function
This got mouse scroll and mobile swipes working with my .animate ! However the problem I have now is that when swipe left or click left the function should .animate +=84% instead of the -=84% Any thoughts on how to trigger the slide when swiping/clicking left so i can animate the opposite way? Also, to give you a better view of how it should work you can see how i'm implementing this. It is only triggered with the arrows and on desktop (slide pop's up on the 3rd slide) Thanks for any help! |
Hey, sorry but this isn't the right forum for that question since it's related to jQuery animations. Please try http://stackoverflow.com/ instead. |
Hi,
I'm trying to write some javascript to respond to the click of .navigate-left and .navigate-right arrows. Is there a class name (or a way to write the java script) that will let me tap into this?
I've found that .navigate-right.enabled works for the right and .navigate-left works for the left.
However, it only responds to the click of the arrows on desktop, it does not work for click or swipe on mobile, and key press, trackpad swipe on desktop.
Here's a stripped down example:
http://chrisriesner.com/DT_web-experiments/DT-reveal-arrows-11-12-13/reveal-arrows-clean.html#/2
I've tried a ton of different solutions with no luck, so any help would be great!!
thanks,
-chris
The text was updated successfully, but these errors were encountered: