-
AuthorPosts
-
July 13, 2018 at 12:01 am #984916
Hi,
On my front page, I’m using a fullwidth slider. When I open the page, the caption slides in from the left.
I disabled this by referring to this post:
https://kriesi.at/support/topic/how-to-disable-caption-sliding-effect-in-fullwidth-slider/
How can I modify the caption to fading in instead of sliding in sidewards?
Best regards,
zizibe1July 13, 2018 at 8:32 am #985027Hey zizibe1,
Please refer to the following:
https://kriesi.at/support/topic/full-width-slider-title-and-caption-fade-in/
Best regards,
Jordan ShannonJuly 13, 2018 at 9:43 am #985056Hi Jordan,
Thank you for the link.
I removed the code which disabled the caption slide from Quick CSS.
Then I opened FileZilla and connected to my server.
I went to wordpress > wp-content > themes > enfold > css > custom.css (in “enfold child”, I couldn’t find an custom.css file).
I dragged the custom.css file to my desktop and opened it with TextEdit (I also have Adobe Dreamweaver on my MacBook but never used it so far).
Then I inserted the following code below “Desktop Styles”, “/* Add your Desktop Styles here */”:
.avia_transform .av_slideshow_full .active-slide .avia-caption-title, .avia_transform .av_fullscreen .active-slide .avia-caption-title, .avia_transform .av_slideshow_full .active-slide .avia-caption-content, .avia_transform .av_fullscreen .active-slide .avia-caption-content { visibility: visible; -webkit-animation: none !important; -moz-animation: none !important; animation: none !important; }
I dragged the custom.css file back to the server (Action: Overwrite).
Then I did a hard refresh in Chrome (hold shift and click the reload button).
Unfortunately, it doesn’t work. The caption still slides in from the left.
What did I wrong?
Best regards,
zizibe1July 13, 2018 at 1:59 pm #985157Hi,
Try adding the following to quick css:
Remove default animation:
.avia-caption-title, .avia-caption-content, .avia-slideshow-button { -webkit-animation: 0s ease 0s normal none 1 running none !important; animation: 0s ease 0s normal none 1 running none !important; visibility: visible !important; }
Run this and then we can work on the fade in.
Best regards,
Jordan ShannonJuly 13, 2018 at 2:19 pm #985166Hi Jordan,
Thank you for your reply.
OK, I added the code to Quick CSS. Now the sliding of the caption is disabled.
What should I do next?
Best regards,
zizibe1July 13, 2018 at 2:23 pm #985169Hi,
Add this to quick css:
.avia-caption-title, .avia-caption-content, .avia-slideshow-button { animation-name: opac; animation-duration: 3s; animation-timing-function: ease-in; -webkit-animation-timing-function: ease-in; }
Best regards,
Jordan ShannonJuly 13, 2018 at 2:32 pm #985171Hi Jordan,
Thank you for the code.
I added it to Quick CSS and did a hard refresh in Chrome.
Unfortunately, it doesn’t work.
Best regards,
zizibe1July 17, 2018 at 8:20 pm #986612Hi,
.avia-caption-title, .avia-caption-content, .avia-slideshow-button { animation-name: opac !important; animation-duration: 3s !important; animation-timing-function: ease-in !important; -webkit-animation-timing-function: ease-in !important; }
Add an important to all the cases, so we see what will happen :)
Best regards,
BasilisJuly 18, 2018 at 4:53 pm #987091Hi Basilis
Thank you for your reply.
I added the code at the very bottom of Quick CSS, but it didn’t work either.
Best regards,
zizibe1July 25, 2018 at 11:32 am #989633Hi,
Thank you for the update.
The css codes have been replaced with this one.
/* fade in of caption front page */ .avia_transform .av_slideshow_full .active-slide .avia-caption-title, .avia_transform .av_fullscreen .active-slide .avia-caption-title, .avia_transform .av_slideshow_full .active-slide .avia-caption-content, .avia_transform .av_fullscreen .active-slide .avia-caption-content { visibility: visible; -webkit-animation: avia_appear_fade 3s 1 cubic-bezier(0.985, 0.005, 0.265, 1); animation: avia_appear_fade 3s 1 cubic-bezier(0.985, 0.005, 0.265, 1); } @-webkit-keyframes avia_appear_fade { 0% { opacity: 0.1; } 100% { opacity: 1; } } @keyframes avia_appear_fade { 0% { opacity: 0.1; } 100% { opacity: 1; } }
Remove the browser cache prior to checking the page.
Best regards,
IsmaelJuly 25, 2018 at 5:32 pm #989825Hi Ismael,
Thank you for replacing the code.
Now, the caption is fading in, but the timing is taking too long.
The timing of the caption should be the same as here:
https://kriesi.at/themes/enfold-business-flat/
I experimented with the parameters of your code, but I couldn’t figure it out.
Could you help me please?
Best regards,
zizibe1July 26, 2018 at 7:45 am #990088Hi,
Adjust the duration. It’s currently set to “3s”.
-webkit-animation: avia_appear_fade 3s 1 cubic-bezier(0.985, 0.005, 0.265, 1); animation: avia_appear_fade 3s 1 cubic-bezier(0.985, 0.005, 0.265, 1);
Best regards,
IsmaelJuly 26, 2018 at 10:59 pm #990489Hi Ismael,
Thank you for your reply.
I set the duration to “1s”. But the animation is not as smooth as in the Enfold Flat Business Demo.
When I open my front page, the caption is already slightly visible. But the caption should come “out of nowhere”. Besides, the transition to full opacity is a little bit abrupt.
I set the the opacity to “0”. But this didn’t really help. I also experimented with the four parameters of the cubic-bezier. But I couldn’t figure out how it’s done in the Enfold Flat Business Demo.
How can I improve the animation of my caption?
Best regards,
zizibe1July 30, 2018 at 3:53 am #991357Hi,
You can adjust the keyframe animation values.
@-webkit-keyframes avia_appear_fade { 0% { opacity: 0.1; } 100% { opacity: 1; } } @keyframes avia_appear_fade { 0% { opacity: 0.1; } 100% { opacity: 1; } }
// https://css-tricks.com/snippets/css/keyframe-animation-syntax/
Best regards,
IsmaelAugust 2, 2018 at 12:06 am #992623Hi Ismael,
Thank you for your reply.
As I mentioned in my last post, I already set the opacity to “0”:
@-webkit-keyframes avia_appear_fade { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes avia_appear_fade { 0% { opacity: 0; } 100% { opacity: 1; } }
I also checked the link you mentioned, but as far as I can see, they did the same.
Still, my impression is that the animation of my website isn’t exactly like the animation of the Enfold Flat Business Demo. Are the values really the same?
Best regards,
zizibe1August 2, 2018 at 7:09 am #992734Hi,
I adjusted the animation values a bit.
-webkit-animation: avia_appear_fade 0.6s 1 ease-in; animation: avia_appear_fade 0.6s 1 ease-in;
This is the same as the animation effect from the demo.
-webkit-transition: opacity 0.6s ease-in; transition: opacity 0.6s ease-in;
Please purge the cache prior to checking the page.
Best regards,
IsmaelAugust 5, 2018 at 6:43 pm #993726Hi Ismael,
Thank you for adjusting the animation values and the information about the demo.
I changed 0.6s to 1s to make the animation a little bit better visible.
-webkit-animation: avia_appear_fade 1s 1 ease-in; animation: avia_appear_fade 1s 1 ease-in;
Now the animation almost meets my expectations. My idea is that when you open the page, for a brief moment – maybe 1s or less – there’s only the image visible without the caption. Is there a possibility to increase the time interval between the opening of the page and the beginning of the animation?
Best regards,
zizibe1August 6, 2018 at 8:32 am #993831Hi,
Yes, that’s possible with the animation-delay property.
-webkit-animation: avia_appear_fade 1s ease-in 2s; animation: avia_appear_fade 1s ease-in 2s;
That last value “2s” is the delay.
Best regards,
IsmaelAugust 6, 2018 at 12:43 pm #993908Hi Ismael,
Thank you for your reply.
I added the delay to the CSS code. Unfortunately, it doesn’t work as requested.
Now, when you open the page, the caption is already there. After two seconds, the caption disappears and fades in.
But my idea was that when you open the page, there should be only the image visible without the caption. After a brief moment, the caption should fade in.
How can I adjust this?
Best regards,
zizibe1August 7, 2018 at 2:24 am #994171Hi,
It’s working now. We set the initial opacity to 0.
.avia_transform .av_slideshow_full .active-slide .avia-caption-title, .avia_transform .av_fullscreen .active-slide .avia-caption-title, .avia_transform .av_slideshow_full .active-slide .avia-caption-content, .avia_transform .av_fullscreen .active-slide .avia-caption-content { opacity: 0; }
Best regards,
IsmaelAugust 8, 2018 at 3:12 pm #994988Hi Ismael,
Thank you for your reply.
Now, the delay is working, but after the fade-in, the caption disappears completely.
How can I fix this?
Best regards,
zizibe1August 9, 2018 at 9:01 am #995304Hi,
My bad. I didn’t notice that. I set the “animation-fill-mode” property to “forwards” to make the animation stop on the last frame.
Best regards,
IsmaelAugust 9, 2018 at 6:02 pm #995637Hi Ismael,
Great! I changed the animation-delay value to 0.4s. Now, the animation works as I imagined.
Thank you very much for your efforts and your patience.
Best regards,
zizibe1August 9, 2018 at 6:37 pm #995650Hi,
I’m glad you were able to get this resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Fullwidth slider caption fading in instead of sliding in sidewards’ is closed to new replies.