In my tutorial requests Trello board, a user asks:
How would you add the Ken Burns Effect to the front-page1 background image in infinity pro and keep it responsive?The Ken Burns effect is a type of panning and zooming effect used in video production from still imagery. We can create a custom animation using CSS transform property and specify scale3d (for zooming) and translate3d (for panning) at various keyframes. Then apply this animation to
.front-page-1element of Infinity Pro. But since animations get inherited to children, the widget (having the text which appears centered on top of the section) also keep zooming/panning in/out. While the
reversekeyword may be used to get around this to some extent, it does not solve the problem fully. We can work around this by noting that the main problem is because we are trying to animate the parent. What if we could use .front-page-1's
:beforepseudo selector to create a child element (above the widget area) and set the background image to it instead of to .front-page-1 and then animate it? This way, the widget will be independent and Ken Burns effect can be applied only to the background image.
Step 1Edit lib/output.php.
To view the full content, please sign up for the membership.
Already a member? Log in below or here.