Jump to content
Search Community

Correct order for SVG mask and a div outside the mask

Sean_has_started_coding test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

Hello all

I am trying to ensure the masked text within the SVG is visible over the red circle (the div holding the circle is outside the SVG). I need the div to be outside the SVG as the circle is created from an elaborate animation where shapes are morphed into each other.

The issue I am having is the masked text within the SVG is not visible on top of the circle. 

I have placed absolute positioning for both the SVG and the circle and ensured the Z-index is higher for the latter. I thought this would solve the issue but I had to luck.
Any help for this would be fantastic. 
Not great urgency, I'm not looking into this until next week, but would be great if someone can offer assistance.

Thanks so much.

See the Pen GRYwrYM by HappyGooner (@HappyGooner) on CodePen

Link to comment
Share on other sites

  • Solution

Hello there Sean.

 

I think you just need to put the position property and z-index on the SVG itself instead of your group #seven.

 

Does this work more like you intended?

 

(I changed the radius of your svg circle from 80 to 75 - and added some infinite yoyo repeat to the tween; latter just for better showcasing)

 

See the Pen wvYQJXb by akapowl (@akapowl) on CodePen

  • Like 3
Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...