-
AuthorPosts
-
August 16, 2018 at 3:42 pm #997975
Hi team,
i found this nice effect on this sample page: http://slimhamdi.net/lina/demos/index-light.html
Plz try as example to hover “about me” and you can see that the color will do a cross change of the two words.
Is it possible to this with enfold?
Sunny regards,
AlexanderAugust 16, 2018 at 7:52 pm #998123Hey Alexander,
Yes, but this is only possible via css and or JavaScript. You would likely need a freelancer to do the specific coding.
Best regards,
Jordan ShannonAugust 17, 2018 at 3:58 pm #998488here with enfold and only css – if this is it – tell me:
hover the about me column: https://webers-testseite.de/buttonlink/it is all in the code of you link you gave to us ;)
August 17, 2018 at 4:22 pm #9984941) Create an enfold heading in a flex-column.
2) if there are columns besides each other it is best to have the equal-height option.
3) i gave to the heading itself a custom class: change-on-hover
4) the hover effect will be active if i’m over the whole column
5) Put in the heading input field:
<span data-hover="About">About </span> <span data-hover="Me">Me</span>
6) The data-hover values do not need to be the same – but it looks better if so
7) do this to quick css:.change-on-hover .av-special-heading-tag { -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; z-index: 111; width: 100%; margin: 0 auto !important; overflow: hidden; } .change-on-hover .av-special-heading-tag span { font-weight: bold; display: inline-block; position: relative; transition: transform 0.3s; } .change-on-hover .av-special-heading-tag span:first-child { color: #fff } .change-on-hover .av-special-heading-tag span:nth-child(2) { color: #ffb400 } .change-on-hover .av-special-heading-tag span:first-child::before, .change-on-hover .av-special-heading-tag span:nth-child(2)::before { position: absolute; content: attr(data-hover); } .change-on-hover .av-special-heading-tag span:first-child::before { top: 105% } .change-on-hover .av-special-heading-tag span:nth-child(2)::before { bottom: 105% } .flex_column:hover .change-on-hover .av-special-heading-tag span:first-child { transform: translate3d(0, -105%, 0); color: #ffb400 } .flex_column:hover .change-on-hover .av-special-heading-tag span:nth-child(2) { transform: translate3d(0, 105%, 0); color: #fff }
PS: it works responsive – but maybe it is important to take a relative font-size as i do in the above example 4.5vw
- This reply was modified 6 years, 3 months ago by Guenni007.
August 17, 2018 at 4:38 pm #998504@Guenni007: Great! Many thanks!!! Wish you a great weekend. Alexander
August 17, 2018 at 6:31 pm #998543Hi,
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 ‘Switch color of words inside a headline by hoover’ is closed to new replies.