Smooth Background Color Change on Scroll in Elementor | Scrolling Background Effect/Animation

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Today I'll show you how to make smooth Background Color Change on Scroll in Elementor. We'll create this cool scrolling Background Effect/Animation.
    ✅Get Elementor Pro:
    makedreamwebsi...
    ✅Get Domain & Webhosting(SAVE 50%):
    makedreamwebsi...
    ✅Get code snippet for Smooth Background:
    makedreamwebsi...
    ✅Get creative templates on my Template Shop:
    templatish.com
    In this tutorial, I’ll show you how you can create a smooth background animation in your WordPress website using the Elementor. So, instead of a normal background, we’ll make a smooth transition when we scroll inside our page. And it gives your page a much better and modern look.
    First, we need to write 2 code snippet from our dashboard. Then, our scrolling effect will be added. But, for some sections, there can be some issues. So, we need to fix that.
    For those sections, we need to create another version of them and also follow some other steps. Then, it works perfectly.
    If you use image, then you can also use multiple versions of a same image and show it in different backgrounds. This effect is perfectly responsive on the tablet and mobile devices. So, you also don't have to do anything extra for that.
    That's how you can create this animated background color in your Elementor website. If you enjoy this tutorial, don't forget to like and subscribe.

Komentáře • 70

  • @meisterleise
    @meisterleise Před rokem +5

    Absolutely amazing! Even a month ago I was asking myself how to make this effect. And here it is. Perfect!

  • @space__dad
    @space__dad Před rokem +8

    This is awesome!
    Is is possible to apply this only to certain sections of a page? Like if I don't want the colour to change when I reach my footer, for example, could I exclude the footer from triggering the change (with a css class maybe)?

  • @marridesign4108
    @marridesign4108 Před 4 měsíci

    This code is so much better than the original I was using. Thank you!

  • @CreativeHarinder
    @CreativeHarinder Před měsícem

    Thank you so much buddy.

  • @NicholasHenault
    @NicholasHenault Před 2 měsíci

    Great tutorial! I did have an issue with the g-transition smoothing all elements on my page, not just the background color transitions. You can fix this by tweaking the style section in Code 2 to:
    body.loading {
    opacity: 1;
    }
    body.loaded {
    --bg-transition: 0.8s;
    }
    body {
    transition: background-color var(--bg-transition) ease-in-out !important;
    }
    .sb-color > * {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out !important;
    }
    .sb-color > *.show {
    opacity: 1;
    pointer-events: unset;
    }

  • @sameerpatelxyz
    @sameerpatelxyz Před rokem +1

    love your every tutorial, thanks for sharing with us

  • @stuartibbotson7179
    @stuartibbotson7179 Před rokem +1

    Love this effect thank you

  • @brunoaguilar689
    @brunoaguilar689 Před rokem +2

    Is there a way to apply this only for the header? For example the about section on the hompage is blue background, so the header needs to turn entirely into blue and then the section below "about" has a green background, so the header will need to turn into green. Thanks!

  • @ar_dani_
    @ar_dani_ Před 10 měsíci

    Great, I was wondering how to achieve this, in 48h I have seen 3 sites with this effect 😊

  • @rynobotes3196
    @rynobotes3196 Před rokem

    Awesome video! Thanks!!!

  • @annebyrne4420
    @annebyrne4420 Před 10 měsíci

    I LOVE this and have it though-out my website BUT I have hit an issue. I have custom post types using CPT UI Plugin and the background does not change. It works ace in WordPress Pages and Posts but not in Custom Page Types.
    Can you help!!!!!!

  • @thewebstylist
    @thewebstylist Před 7 měsíci

    Beautiful!

  • @Snowfox23
    @Snowfox23 Před rokem

    So creative 🤩🙌

  • @glencoe1266
    @glencoe1266 Před rokem

    Amazing, no more having to use a buggy elementor add on.

  • @Asad-Main
    @Asad-Main Před 3 měsíci

    It's so beautiful but I can't make it work. 😢

  • @hollandnr1453
    @hollandnr1453 Před rokem +2

    Could you maybe make the tutorial more extensive so that the text colors also go along with the color transitions?

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem

      By extensive you mean to increase the color changing transition time? Right?

  • @mikesteinmuller7049
    @mikesteinmuller7049 Před 9 měsíci

    Is there any way to change the color of the header font, based on the background color? :)

  • @wielandsmith
    @wielandsmith Před rokem +1

    So weird. I copied the text exactly and followed the directions, and it's not working. Literally nothing happens.

  • @user-il4me9uv9s
    @user-il4me9uv9s Před rokem

    Is there a way to make this not affect the other motion animations on page as the g-transition 0.8 makes it all v slow.

  • @soyjosemillan
    @soyjosemillan Před rokem

    Awesome! This work with gradients background?

  • @ahmed.saa7
    @ahmed.saa7 Před rokem

    Hi, sir actually i have seen your video on scrolling effect that is changing the background color on scroll what i want is to change the specific column color when user scrolls on screen only in mobile view can you please help me with that

  • @PUKAagency
    @PUKAagency Před 8 měsíci

    Any chance you can do this using background images instead of only colors?
    Can't find a tutorial on this anywhere on CZcams ((:

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před 8 měsíci

      Yes, you can follow the same process. But, instead of colours, you can use background images...

  • @josterricardo
    @josterricardo Před rokem

    Hello, in my case the console gives me this error when I scroll.
    caught TypeError: Cannot read properties of undefined (reading 'replace')

  • @eada18
    @eada18 Před rokem

    Hi When I added it to my site, my Image Box Card Carousel doesn't work anymore can help me why that is happening?

  • @michaellindberg1063
    @michaellindberg1063 Před rokem +1

    I followed this step by step on my astra website and nothing happened. Doesn't seem to have made any difference.. Thoughts?

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem

      Some plugins may have conflicted with the code

    • @michaellindberg1063
      @michaellindberg1063 Před rokem

      @@MakeDreamWebsite Is there a way to check this?

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem

      That is one reason, you may deactivate all other plugins, if then it still doesn't work, so it can be figured out the problem is not because of plugins. BTW, have you use the flexbox container?

  • @kimberlyhuizen
    @kimberlyhuizen Před rokem

    Hi! I really like the tutorial and the effect but using the javascript kinda broke my site. All of the test content disappeared. In the editor it looks fine. Any idea how to fix this?
    Kind regards

    • @Tina_Awwad
      @Tina_Awwad Před rokem

      I don't know if you need this info or not since it's been 2 month on your comment, but for anyone who needs it, I just experienced the same thing so I just deleted the code and installed a plugin "Advanced DB Cleaner" and my site came back to life.

  • @sngigi2011
    @sngigi2011 Před rokem

    Since there are many sections with images won’t this make the site big and heavy?
    Great tutorial though.

  • @user-fo1ee1kh7c
    @user-fo1ee1kh7c Před rokem

    There should be a way to set the code such that the animation starts from ehen the section is at the middle of the screen, at the moment it starts with the section the bottom, how can we ofset that animation?

    • @user-fo1ee1kh7c
      @user-fo1ee1kh7c Před rokem

      experimented with line 44 of the code, and bottomOfset = 600 was a sweet spot, i didn't need to duplicate any sections

  • @nhsareng
    @nhsareng Před rokem

    Love this tutorial, value for time 👍

  • @sumeramughal
    @sumeramughal Před rokem

    Hi, thanks for an awesome tutorial :) However, it's not working at all for me. The entire page turned white. Is there any external JS and CSS library that needs to be linked? I'm unable to figure out what is causing this. Any ideas?

    • @Zzjul
      @Zzjul Před rokem

      Add both CSS first!

    • @sheltoncutinha5195
      @sheltoncutinha5195 Před 11 měsíci

      I have the same problem. How did you solve it? @MakeDreamWebsite

    • @sheltoncutinha5195
      @sheltoncutinha5195 Před 11 měsíci

      ​@@Zzjulhow to do this?

    • @sumeramughal
      @sumeramughal Před 11 měsíci +1

      @@Zzjul please share the steps to solve this. Thanks!

  • @LifewithKeneshaB.
    @LifewithKeneshaB. Před 5 měsíci

    Can this be used on Shopify?

  • @alexandrumunteanu710
    @alexandrumunteanu710 Před rokem

    Do you have a version of the code that works for single custom post types? I think this only works for pages, not posts. Thanks!

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem

      It also works with post if you build the post using Elementor, not Gutenberg.

    • @alexandrumunteanu710
      @alexandrumunteanu710 Před rokem

      @@MakeDreamWebsite Are you sure? I tried and it doesn't. I have a single post template and it doesn't work inside the post content area. It's built with elementor.

  • @joelgracia130
    @joelgracia130 Před rokem

    Hey, my page go so slow with this code. What can i do?

  • @arifaarif172
    @arifaarif172 Před rokem

    I have added this code but didn't work May be I have added colors in sections and I am not using the flex box. Is it fine?

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem

      I'm not sure about sections. It probably may cause issues...

  • @user-xf8tk8np2h
    @user-xf8tk8np2h Před rokem

    👍👍👍👍👍👍👍👍👍

  • @ILTAN016
    @ILTAN016 Před rokem

    Is this method affecting the performance? because you're duplicating all the elements, including images

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem +1

      Yes, it's a drawback of this method, although it's too much negligible.
      But, as you can see for all the sections you don't have to make a duplicate, you only need where it looks odd.

  • @kingmatolo8381
    @kingmatolo8381 Před rokem +1

    I do appreciate the nice work you do to create amazing content but lately I see you only use flexbox containers which is still in beta. I'm a web designer, and I had to stop using containers on my project because it had issues. I still stick to the current sections and columns method because it doesn't have any issues till they release a stable flexbox container. The issue is some of your recent tutorials do not work with the section/columns, you created them for flexbox containers and not section/column. Since I don't use experimental features on active websites, most times i just stop watching a video when I see the tutorial is created for a flebox container because most time they don't work

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem +3

      Hi Matolo, I know your pain 😢 Yes, it's now on beta version and soon it will release as default layout system. But, if I make those with section/columns, after some days those all videos will not working and become useless for all of you. And now as the flexbox is experimental, so with the container version, I have also provide you a non-container version as template (as in a single video it's not possible to show them on both version).
      Now, specifically for this tutorial, with sections/columns it's not possible to achieve the effect in this way. Because you can see for some container you need to wrap this into a new container which is not possible for sections/columns.

    • @meisterleise
      @meisterleise Před rokem +1

      @@MakeDreamWebsite Exactly. I think that's the right decision.

  • @criticalw.o.r.t.h.4701

    Does that work with the free version?

    • @MakeDreamWebsite
      @MakeDreamWebsite  Před rokem

      If you use a code snippet plugin and somehow can paste those code snippets. Then, it will work with Elementor free version too...

  • @tolgahankaya3467
    @tolgahankaya3467 Před 9 měsíci