Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1316497
    Headlines34
    Participant

    Hello,

    I’m trying to animation on hover to my submit button seen here: http://www.kennettsquareautomotive.com/ks-automotive/

    The CF7 snippet for the image is: <input type=”image” class=”mc-spin” src=”http://www.kennettsquareautomotive.com/wp-content/uploads/2017/01/mc-tire-street.png&#8221; height=”100″>

    The css:
    .mc-spin: hover {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);}

    When I hover over the image it moves slightly, but does not spin. Can you help?

    Thanks,
    Chuck

    #1316965
    Friech
    Moderator

    Hi Chuck,

    Thanks for writing in! The hover effect does not happen slowly, it goes 0 – 360deg so we’ll never notice the wheel spin. Maybe you can do 180deg instead.

    .mc-spin:hover {
    	-webkit-transform: rotate(180deg);
    	transform: rotate(180deg);
    }

    Thanks.

    #1320417
    Headlines34
    Participant

    Got it to work with this code and it looks awesome:

    .mc-spin {
      border-radius: 50%;
      -webkit-transition: -webkit-transform .8s ease-in-out;
              transition:         transform .8s ease-in-out;}
    .mc-spin:hover {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);}

    Thanks!

    #1320784
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1316497 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>