Text colour and position change interaction

I am trying to achieve the interaction like the one here in the headline for james : https://www.jameswilliams.design/

  • Tried :I have tried using the class adder finesweet tool, using custom code to change the positioning of the background of the text and move it to half way. (Text background clipping) = but to no avail.
  • Know : I can see from inspection that there is a scaling interaction happening as the interaction plays.
  • Question : is it possible to have two divs (BG :white and pink) and then have the text layered on top but transparent, therefore letting the colour of the divs be seen through ?

Thank you Thank you ! I am having fun trying to figure this one out :smile:

@memetican maybe you know michael !..

Hello,

I think I found the solution:

Here’s how I did by looking at the inspector:

Capture d'Ă©cran 2024-09-26 172735

  1. Add a div block, with 2 div blocks inside of it

  2. Give one the position relative, with 17rem of height, and a background color (gray in this case), add a heading inside of it and give it an absolute position to the bottom, give it 12 rem of font size with white color

  3. Give the other div block 5 rem of height, with an effect of Blending ‘darken’, a background color #fdd6d5

That should do it, for the animation it’s called paralax animation, webflow has a video on it

2 Likes

Read only link

I tried this and followed the webflow tutorial on the prallax movement but for some reason I cant get the div 3 (as in yours) to move :question:

Can you share your read only link please ? I will try there

If you’re trying to also get the “typing” effect of one-character at a time, James is using several libraries for that including split-type, GSAP, and scroll-trigger.

It would take a bit of work to unpact the positioning and timing of the elements, and combine that with the parallax color effect that Yakub’s identified, but you might have some fun with that.

1 Like

yes the read only link is tagged above also : Webflow - Sheena’s Portfolio Website

Thank you I didnt see it!

It was a bit tricky but I did it.

  1. First change the layout just like this
    Capture d'Ă©cran 2024-09-27 112932
  2. Give the ‘Div Block 4’, black background, overflow hidden
  3. Give the ‘Left Align’, position relative
  4. Give the ‘Div Block’ 3 a height (or it wont appear in the published site)

You will have to play a bit with the CSS to have a perfect aligned blocks and heading

For the animation:

  1. Select ‘Section Header’, create the while scrolling in view animation, and do exactly like this, (you have to put at 63% because thats the start of your website i don’t know why)

At 63%
Div Block 2 Move: 0px 0rem 0px
Div bock 3 Scale: 1-1-1

At 100%
Div Block 2 Move: 0px -8rem 0px
Div Block 3 Scale: 1-4.4-1

1 Like

Thank you Yakub !! I have almost got it !!

https://preview.webflow.com/preview/sheenas-superb-site-258817?utm_medium=preview_link&utm_source=designer&utm_content=sheenas-superb-site-258817&preview=c3628419717132f820fedf976a71770a&workflow=preview

I just can’t get the pink colour to just appear within the letters ?

Also what was your “left align” div doing ? I don’t have anything inside it !


I got it !!
Anyone wondering, I just did as Yakub said on the first reply by: giving greater z index to the pink div so it sits on top of Text, and then applying : Blending (darken) to the Pink div.

Thank you Yakub !! :smile:

Well done Sheena, my pleasure

Your ‘Left Align’ was the div with the text “Webflow Designer / Developer”

1 Like