Rohit Girdhar
Rohit Girdhar

Reputation: 353

How to achieve this CSS effect

I was wondering how the guys who made carv.ai achieved the text masking effect on the paragraph "Carv connects wirelessly ...".

I know that we can mask a background image on a text.

Upvotes: 0

Views: 67

Answers (1)

ca1c
ca1c

Reputation: 1295

The first thing that you can do to have text masking, is either give the masking div a greater z-index than the text, or make the text the same color as the masking color. Then you can use jQuery to make the div slide away.

Here is the jQuery:

$("#id").animate({width:'toggle'},350);

Upvotes: 1

Related Questions