TerraHQ Posted Monday at 01:05 PM Share Posted Monday at 01:05 PM Hi All I was wondering if you can help me out, I want that my dot div expands, and the image stays there. My codepen is quite simple, but I can't quite make it work, because at the moment I'm scaling the image too. can someone help me? See the Pen XWwYWzq by andresclua (@andresclua) on CodePen Link to comment Share on other sites More sharing options...
geedix Posted Monday at 07:43 PM Share Posted Monday at 07:43 PM Hi, one way to get the effect of the circle expanding to reveal a static image is to use a mask in an SVG, like the example at the bottom of this page: https://gsap.com/community/forums/topic/18847-circle-mask-animation/ I looked at another old forum page -- https://gsap.com/community/forums/topic/32322-clip-path-to-gsap-animation/ -- and made a fork of your pen using a variable for clip-path. See the Pen GRaGjym by geedix (@geedix) on CodePen 1 Link to comment Share on other sites More sharing options...
TerraHQ Posted Tuesday at 09:54 AM Author Share Posted Tuesday at 09:54 AM hi @geedix, your image is not fullscreen as mine, how could you accommplish that? Link to comment Share on other sites More sharing options...
Solution geedix Posted Tuesday at 01:47 PM Solution Share Posted Tuesday at 01:47 PM Hi @TerraHQ, I don't think you want your image scaling up in the animation like it was originally, so you need to set it the size you want in your CSS, for example: See the Pen qBGKQpJ by geedix (@geedix) on CodePen You will probably want a bigger source image to get the quality up for big screens. 2 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