Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1336564

    Hello,

    I have a .png set as the background of the color section on my home page and I would like for it to slide in from the left on page load. Is there a way to achieve this? If you click on the link, I’m looking to animate the outlined word behind the photo and text.

    Thanks in Advance!

    Becky

    #1336642

    well try to create your own keyframe animation.
    At the end f.e. a kenburns effect is nothing else than that. see: https://codepen.io/SaijoGeorge/pen/LxeGgY

    so to better select the color-section – give a unique ID or custom-class to it – in my test page it is: animated-background as class.
    a slide from left to right and back is f.e:

    .avia-section.animated-background {
     animation: anime 60s linear infinite;
    }
    
    @keyframes anime {
     0% {
      background-position:0% 50%
     }
     50% {
      background-position:100% 50%
     }
     100% {
      background-position:0% 50%
     }
    }

    (see link to codepen – and add the other browser fixes too ( -webkit seems to be the most important now ) )
    see: https://webers-web.info/moving-background/

    #1336910

    Thank you! I’ll give this a shot this morning and report back.

    #1336924

    Hello, I tried the code that you gave me, but the animation is not working. I called my color section .homeheader and inserted this code:

    .avia-section .homeheader {
    animation: anime 60s linear infinite;
    }

    @keyframes anime {
    0% {
    background-position:0% 50%
    }
    50% {
    background-position:100% 50%
    }
    100% {
    background-position:0% 50%
    }
    }

    When I refreshed the page, the background did not animate. https://wordpress-692037-2388778.cloudwaysapps.com/

    #1336956

    Hi,

    Please try this CSS instead:

    .avia-section.homeheader {
    animation: anime 60s linear infinite;
    }
    
    @keyframes anime {
    0% {
    background-position:0% 50%
    }
    50% {
    background-position:100% 50%
    }
    100% {
    background-position:0% 50%
    }
    }

    Best regards,
    Rikard

    #1337095

    It’s still not animating. I’m using a color section with the word “extrusion” as the background of the section. I’m putting the code into Quick CSS in the General Styling section. Should it go somewhere else?

    #1337192

    Hi,

    Thank you for the update.

    The background is animating on our end. Please make sure to purge the cache before testing the page, or switch to incognito mode to refresh the stylesheets.

    Best regards,
    Ismael

    #1337329

    I’ve tried looking at in Incognito mode, I’ve cleared the cache but I still cannot get the background to animate when I hit refresh. Here is the site address to check. https://wordpress-692037-2388778.cloudwaysapps.com/. Thanks!

    #1337363

    i can see the animation too. ( Firefox, Safari, Chrome on OSX )

    there is one thing to mention : if your screen is bigger than the image size – the animation stops.
    maybe you setup a background-size to that section f.e. : background-size: 110%

    #1337370

    Yep, that’s it! I was viewing on my larger monitor and when I just pulled it down onto my laptop, I could see the animation. Where would I add piece of CSS? into the .homeheader section?

    #1337386

    Hi,

    Thanks for the update. What new CSS are you looking to add?

    Best regards,
    Rikard

    #1338215

    Hi Rikard,

    Sorry for my delayed response. I need to add CSS that will show the animation on larger screens like you mentioned.

    Thanks!

    Becky

    #1338261

    Hi Becky,

    Thanks for contacting us!

    Please add following code to Quick CSS field in Enfold theme options > General Styling tab

    
    .avia-section.homeheader {
    background-size: 110%;
    }
    

    Regards,
    Yigit

    #1338265

    That worked, thanks Yigit!!!

    #1338269

    Hi,

    You are welcome! We are happy that @guenni007 could help you out :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Enjoy the rest of your day!

    Best regards,
    Yigit

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Animate Color Section’ is closed to new replies.