Jump to content

How do I create a masked (knockout) headline text effect?

Recommended Posts

  • Replies 9
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
Posted

Hi! Sorry for the delay, I just saw your response on this thread. I would like this effect to be applied only to the text in the first section of my home page. Currently, that text looks like the screenshot I've attached here. I'd like to instead make the text centered with the knockout/mask effect applied with a video banner below.

You can see the site that I would like this to be applied to here: www.absorbproductions.com
And a Codepin of the effect here:  https://codepen.io/Moslim/pen/zwJPgL

Screen Shot 2022-03-30 at 1.34.58 PM.png

Posted
On 3/31/2022 at 12:38 AM, chymer said:

Hi! Sorry for the delay, I just saw your response on this thread. I would like this effect to be applied only to the text in the first section of my home page. Currently, that text looks like the screenshot I've attached here. I'd like to instead make the text centered with the knockout/mask effect applied with a video banner below.

You can see the site that I would like this to be applied to here: www.absorbproductions.com
And a Codepin of the effect here:  https://codepen.io/Moslim/pen/zwJPgL

Screen Shot 2022-03-30 at 1.34.58 PM.png

Add to Design > Custom CSS

/* Top section text Codepen effect */
div#block-bf66ca977ef94b68c5a7 h2 {
background-image: url(https://media.giphy.com/media/26BROrSHlmyzzHf3i/giphy.gif);
 background-size: cover;
 color: transparent;
 -moz-background-clip: text;
 -webkit-background-clip: text;
 text-transform: uppercase;
 font-size: 50px;
 margin: 10px 0;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
On 4/1/2022 at 9:44 AM, tuanphan said:

Add to Design > Custom CSS

/* Top section text Codepen effect */
div#block-bf66ca977ef94b68c5a7 h2 {
background-image: url(https://media.giphy.com/media/26BROrSHlmyzzHf3i/giphy.gif);
 background-size: cover;
 color: transparent;
 -moz-background-clip: text;
 -webkit-background-clip: text;
 text-transform: uppercase;
 font-size: 50px;
 margin: 10px 0;
}

 

This worked! One issue though: when replacing the image URL with a Youtube link, it doesn't work. Any suggestions on how to get this effect with a YouTube link instead of an image URL?

Thank you!

Posted
6 hours ago, chymer said:

This worked! One issue though: when replacing the image URL with a Youtube link, it doesn't work. Any suggestions on how to get this effect with a YouTube link instead of an image URL?

Thank you!

Hi. No way. background-image attribute work with image only

You can consider using gif image.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
13 hours ago, tuanphan said:

Hi. No way. background-image attribute work with image only

You can consider using gif image.

Darn, thank you for the information though! I'll play with it and see what alternatives I can come up with. Thank you! 🙂

  • 11 months later...
Posted
On 3/22/2023 at 12:02 AM, Chlobot said:

Hi @tuanphan, I'm trying to use this same effect on a website but something isn't working.  I think it's something with the "-webkit-background-clip: text;"? Any help would be much appreciated!

https://moose-chinchilla-wpdt.squarespace.com/

pw: Hawthorn

 

This is the section I want to apply it to (on the homepage): 

image.thumb.png.979dbac75ef8da44619fdd5b7b9004e6.png

Use this code

div#block-yui_3_17_2_1_1679414865684_12578 * {
    background-image: url(https://media.giphy.com/media/26BROrSHlmyzzHf3i/giphy.gif);
    background-size: cover;
    color: transparent;
    -moz-background-clip: text;
    -webkit-background-clip: text;
    text-transform: uppercase;
    font-size: 50px;
    margin: 10px 0;
}

image.thumb.png.b559658c5551ea82288b339889cd98c6.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.