jacobc1596 Posted March 21, 2022 Share Posted March 21, 2022 I'm trying to animate a section from 100vh to 75hv, however once the animation is complete the initially declared height (75vh) is now in fixed pixels. This prevents it resizing with the browser. Any feedback appreciated, thanks! See the Pen OJzXevd by jacobcollinsdev (@jacobcollinsdev) on CodePen Link to comment Share on other sites More sharing options...
Solution PointC Posted March 21, 2022 Solution Share Posted March 21, 2022 Hi @jacobc1596 Welcome to the forum. You could use a CSS variable for that. See the Pen 45a396df430219c77e4603227e3f1d89 by PointC (@PointC) on CodePen Happy tweening and welcome aboard. 4 Link to comment Share on other sites More sharing options...
jacobc1596 Posted March 21, 2022 Author Share Posted March 21, 2022 @PointC That's worked a charm - thanks very much! 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