Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS JS Help

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33481
    cpyle0819
    Participant

    Hi,
    I need some JavaScript help.
    – I have an image.
    – I have a button.
    -When I click said button, I want my image to rotate CW or CCW slowly.

    I’ve tried some stuff using jQueryRotate and it works if I load it on DOM Ready but not if I leave it as a function and try to run said function. I’m open to other suggestions.

    I’m a JS newb so explain as you would a child.





    test site











    #101051
    TheDoc
    Member

    You need to do something like:

    $(".your-button").click( function(e) {
    e.preventDefault();
    gearspin();
    });
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.