Jump to content
GreenSock

eppel

Control Play using <a href= format?

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello,

 

Would someone be able to provide an example of a play button using the html href= format?

 

I followed the Jump start and can use the <input format.

 

Had been learning tweens.

 

Would like to try the href= format. My attempts have failed.

 

I am a know nothing.

 

thank you

Link to comment
Share on other sites

I'm guessing you are referring to putting a javascript call inline with your <a> tag in the html. 

 

You can see two examples here

http://codepen.io/GreenSock/pen/1b68bf2ea2edd6d81274f42d681630ba

 

Using links for purposes other than linking is a bit of a controversial topic. You can read some thoughts on the matter here:

http://stackoverflow.com/questions/134845/href-attribute-for-javascript-links-or-javascriptvoid0

Link to comment
Share on other sites

I know so little that even my question is ambiguous.

 

Your reply is perfect.

thank you for your help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×