abbe Posted January 17, 2020 Share Posted January 17, 2020 hi guys i want mask svg element on some gsap animation. i want red element in svg goes top of pricebox div,i set z-index for it but wont work ??? anyone can help me ? See the Pen OJPBpxa by abbecipher (@abbecipher) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 17, 2020 Share Posted January 17, 2020 Hey abbe and welcome. Please do not try to mention/ping random users. Just post your question and most likely someone will answer it Z index cannot work with SVG elements. The only thing that determines layering within an SVG is the order in which the elements are placed with the later ones being put on top. I'm sorry but I don't understand what you're trying to do in that demo. Can you please describe your goal more clearly and remove any parts of it that are unrelated to your question? 1 Link to comment Share on other sites More sharing options...
abbe Posted January 18, 2020 Author Share Posted January 18, 2020 thanks for your response @ZachSaucier.i remove that mention. i have a div box ( price box) and i want animate it on switch toggle change to svg box element below it. this is animation step : 1.open box 2. move pricebox to y axis (down in to box hole) 3. close that box again. 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