jafar70 Posted June 17 Share Posted June 17 Hi, I am trying to create a page break animation. The desired outcome: My problem: I am having issues trying to centre the blue gradient. The position of the blue gradient also changes depending on the text above. See the Pen zYQpmKW by mrsalami (@mrsalami) on CodePen Link to comment Share on other sites More sharing options...
Solution Cassie Posted June 17 Solution Share Posted June 17 Hi! Could you explain in more detail what you're intending to do? I've made a guess and tweaked your code, but it's unclear whether you're trying to just position the element in the center and then rotate it, or whether you're trying to animate to a central position. See the Pen OJYzrde?editors=0110 by GreenSock (@GreenSock) on CodePen Also your trigger points seemed strange, were you intending the stretch the animation over the entire distance of the page? The element is only in view for a short time so this seems a little wasteful? If I were you I'd define the pagebreak itself as the trigger. Hope this helps! Link to comment Share on other sites More sharing options...
jafar70 Posted June 17 Author Share Posted June 17 I fixed the issue. See the Pen KKLZrNB by mrsalami (@mrsalami) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now