Rotate function on mouseover

144 views
Skip to first unread message

Suthakar V K

unread,
Dec 16, 2014, 2:12:02 AM12/16/14
to gwd...@googlegroups.com
I added css rotate function to #replay and it is not working. I added jquery also for that.

my css code,

 #replay:hover{
         transform:rotate(100deg);
 }

jQuery Code,

 <script>
        document.querySelector('#replay').addEventListener('mouseover', function() {
            console.log('mouse over event on div');
        });
    </script>

Google Web Designer beta

unread,
Dec 17, 2014, 6:53:30 PM12/17/14
to gwd...@googlegroups.com
Hi, 

Can you post the source for a simplified example on this forum or send your files to gwd-s...@google.com? Both, your CSS hover and the JS code look correct, so something else must be going wrong. 

Thanks,
    Pushkar (GWD team)
Reply all
Reply to author
Forward
0 new messages