Cro Posted April 1, 2021 Share Posted April 1, 2021 Site URL: https://www.cronancreagh.com/portfolio Hey I have three pieces fixed text on the right of my webpage. I am looking to have it fade in when the user starts scrolling, rather than have it appear straight away. Beyondspace 1 Link to comment
Solution Beyondspace Posted April 4, 2021 Solution Share Posted April 4, 2021 On 4/1/2021 at 9:53 PM, Cro said: Site URL: https://www.cronancreagh.com/portfolio Hey I have three pieces fixed text on the right of my webpage. I am looking to have it fade in when the user starts scrolling, rather than have it appear straight away. Add this to custom css, it takes advantage of shrink class on header when user start scrolling #block-yui_3_17_2_1_1616356562141_81942, #block-yui_3_17_2_1_1616225316147_17455, #block-yui_3_17_2_1_1616356562141_83066 { opacity: 0; transition: opacity 0.75s; } .shrink + #page #block-yui_3_17_2_1_1616356562141_81942, .shrink + #page #block-yui_3_17_2_1_1616225316147_17455, .shrink + #page #block-yui_3_17_2_1_1616356562141_83066 { opacity: 1; } Cro and tuanphan 1 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Cro Posted April 8, 2021 Author Share Posted April 8, 2021 On 4/4/2021 at 5:07 AM, bangank36 said: Add this to custom css, it takes advantage of shrink class on header when user start scrolling #block-yui_3_17_2_1_1616356562141_81942, #block-yui_3_17_2_1_1616225316147_17455, #block-yui_3_17_2_1_1616356562141_83066 { opacity: 0; transition: opacity 0.75s; } .shrink + #page #block-yui_3_17_2_1_1616356562141_81942, .shrink + #page #block-yui_3_17_2_1_1616225316147_17455, .shrink + #page #block-yui_3_17_2_1_1616356562141_83066 { opacity: 1; } Worked beautifully thank you! Beyondspace 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment