Menu sliding top


Hey Alex,

You can add your animation in the sticky parameters, but also make sure to enqueue the animation uikit component which is part of core components and not add-ons. So make sure you have that in your enqueue callback function:

beans_uikit_enqueue_components( array( 'animation' /* more components you may have */ ) );

Then you can add your animation as such:

beans_add_attribute( 'beans_header','data-uk-sticky',"{top:-300, animation:'uk-animation-slide-top'}" );

Have fun,



Alexandra can you please post the full code and CSS so we all can learn?

Write a reply

Login or register to write a reply, it's free!