-
AuthorPosts
-
August 31, 2018 at 6:15 pm #1004182
Hi, I was wondering how to use the animation that is on the masonry gallery, but in a layout element? I would be applying it to a number of items that could all be in a color box. I like that flip up / perspective effect, but I wanted more control for fonts and styles than is available in the masonry gallery.
September 1, 2018 at 1:30 pm #1004351Hey empiread201,
Please enable custom CSS class name support from Enfold theme options > Layout Builder > Developer options
Add a unique class name to the elements you want to animate and use the CSS provided in this link https://kriesi.at/documentation/enfold/animation/ or you can simply google for code snippets that suits your design.
Best regards,
VinaySeptember 4, 2018 at 5:55 pm #1005713Hi, I’m having trouble making it work. I’m not super savvy with custom css, but I’ve enabled the custom CSS class names and named the image “product_animation”. I was able to find the css in shortcodes in the animation sections and believe this is the masonry gallery animation. I input the class and then nested the animation inside brackets, like so:
( but I’m not sure if this is correct ).product_animation {
@-webkit-keyframes .avia_msonry_show {
0% { -webkit-transform:translateZ(300px) translateY(200px) rotateX(-70deg); opacity: 0.1; }
100% { -webkit-transform:translateZ(0px) translateY(0px) rotateX(0deg); opacity: 1; }
}
@keyframes .avia_msonry_show {
0% { transform:translateZ(300px) translateY(200px) rotateX(-70deg); opacity: 0.1; }
100% { transform:translateZ(0px) translateY(0px) rotateX(0deg); opacity: 1; }
}
}September 5, 2018 at 11:09 am #1006024Hi,
The css code should look something like this.
.product_animation { -webkit-animation: avia_msonry_show 1s 1s linear; animation: avia_msonry_show 2s 1s linear; }
// https://www.w3schools.com/css/css3_animations.asp
Best regards,
IsmaelSeptember 5, 2018 at 5:07 pm #1006215Sorry, I’m a little confused. If that’s an example, am I supposed to combine that with the code I found? The code you included by itself doesn’t have that flip up perspective that the masonry gallery has.
September 5, 2018 at 9:21 pm #1006331Hi,
Hvae you placed the code that Ismael provided, to your custom CSS?
Best regards,
BasilisSeptember 5, 2018 at 9:48 pm #1006356Yes, I tried the code – it was animated, but it was not the animation that is in the masonry gallery. It just started out squished and got larger inside the element like a marshmallow being squished and then regaining it’s shape.
I’m including a private link to the site. The product gallery at the top has the custom css and if you scroll down there is a second gallery that is made with the masonry gallery that has the animation I wanted.
September 6, 2018 at 10:15 am #1006525Hi,
Please try this code:
#top .product_animation .flex_column_table_cell{ -webkit-animation: avia_msonry_show 0.8s 1 cubic-bezier(0.175, 0.885, 0.320, 1.075); animation: avia_msonry_show 0.8s 1 cubic-bezier(0.175, 0.885, 0.320, 1.075); }
Best regards,
PeterSeptember 6, 2018 at 6:26 pm #1006765It’s still not working.
Does it matter where I’ve got the custom CSS class? I’ve got a color section and inside it are 1/4 page elements with an image and text box in each. Right now I’ve go the “product_animation” class in the 1/4 page elements – in order to have the whole box animated. I tried adding it to the color section and the image itself, but I didn’t notice anything different.
September 10, 2018 at 5:19 am #1007753Hi,
If you’re using Dude’s code, you should add the custom css class attribute to the color section element where the columns reside.
Or use the following css code and then apply the custom css class attribute to the column elements.#top .product_animation { -webkit-animation: avia_msonry_show_mod 0.8s 1 cubic-bezier(0.175, 0.885, 0.320, 1.075); animation: avia_msonry_show_mod 0.8s 1 cubic-bezier(0.175, 0.885, 0.320, 1.075); } /*pop up animation*/ @-webkit-keyframes avia_msonry_show_mod { 0% { -webkit-transform:translateZ(300px) translateY(200px) rotateX(-70deg); opacity: 0.1; } 100% { -webkit-transform:translateZ(0px) translateY(0px) rotateX(0deg); opacity: 1; } } @keyframes avia_msonry_show_mod { 0% { transform:translateZ(300px) translateY(200px) rotateX(-70deg); opacity: 0.1; } 100% { transform:translateZ(0px) translateY(0px) rotateX(0deg); opacity: 1; } }
Best regards,
IsmaelSeptember 11, 2018 at 4:21 pm #1008448Still doesn’t work. I tried both but neither is working.
September 12, 2018 at 4:24 am #1008692 -
AuthorPosts
- You must be logged in to reply to this topic.