Jump to content

How to create this specific rotating effect?

Go to solution Solved by badreg,

Copied and pasted from https://clickpivot.com/js/script.js

 

// Spin Badge
$(window).scroll(function() {
var theta = $(window).scrollTop() / 300 % Math.PI;
$('#turn').css({ transform: 'rotate(' + theta + 'rad)' });
});

Copied and pasted from https://clickpivot.com/js/script.js

 

// Spin Badge
$(window).scroll(function() {
var theta = $(window).scrollTop() / 300 % Math.PI;
$('#turn').css({ transform: 'rotate(' + theta + 'rad)' });
});
Link to post
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

×