Styles: animate styles not functioning on first load of first page

Permalink Browser Info Environment
If I have text with animate styles enabled on the first page, when the site first loads and the first page is displayed, the text that has animate styles enabled fails to appear.

Upon scrolling the page even one pixel, the animate text then slides into place.

Animate styles works on slides that are inserted after the first slide. I assume this is because these slides must be scrolled to for viewing, and the animated text works correctly when scrolling into the slide.

Is there any workaround to get animated text to appear upon loading the website?

Thanks

Type: Discussion
Status: New
SnowyMountainWeb
View Replies:
jordif replied on at Permalink Reply
jordif
Hi,

you're right. The animations are triggered as you scroll down, so the first slide is not supposed to have "entrance" animations since it's already visible.

Anyway, if you need to animate the first slide on page load, you could try adding the following javascript:

<script type="text/javascript">
$(window).load( function () {
   $(window).trigger('scroll');
});
</script>


You can include this javascript by editing the theme or by adding it directly to the Content block (by using the HTML button and pasting it to the "HTML Source Editor").

Hope this helps,

Jordi
SnowyMountainWeb replied on at Permalink Reply
SnowyMountainWeb
Works perfectly! Thanks.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.