Skip to content
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

Update on usage (data-animate-scroll) #13

Closed
srph opened this issue Nov 17, 2014 · 1 comment
Closed

Update on usage (data-animate-scroll) #13

srph opened this issue Nov 17, 2014 · 1 comment

Comments

@srph
Copy link
Contributor

srph commented Nov 17, 2014

Instead of

<a onclick="$('[jquery selector]').animatescroll([options]);">Go to Element</a>

We might as well make use of data-animate-scroll in which the library listen for on-click events on elements having the data attribute? For example,

<a href="#" data-animate-scroll-target=".that-element" data-animate-scroll-ease="swing"></a>
@srph srph changed the title Update on usage Update on usage (data-animate-scroll) Nov 17, 2014
@rampatra
Copy link
Owner

I thought of using the data api earlier but due to lack of time I wasn't able to add, anyways I will be adding support for them soon.

If you're comfortable with javascript, you can even contribute by sending a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants