Tagged: x
-
AuthorPosts
-
August 16, 2016 at 3:18 pm #1134145
Brent-StParticipantHi,
Using the search function i was able to find the following code to use.
a.x-img.projects {
background: url(project-img-url) no-repeat center top;
background-size: contain;
transition: 0.25s all ease-in-out;
}a.x-img.projects:hover img {
opacity: 0;
transition: 0.25s all ease-in-out;
}a.x-img[class*=“projects”] img {
transition: 0.25s all ease-in-out;
}projects is the css i have assigned to the image that needs the hover and have substituted project-ing-url with the actual url.
i assume i am not doing this correctly as the animation is not working.
thanks,
Brent
August 16, 2016 at 3:20 pm #1134146
Brent-StParticipantThis reply has been marked as private.August 16, 2016 at 5:52 pm #1134274
JadeModeratorHi Brent,
I have just checked your page but I am not certain which section since the project content band doesn’t seem to contain image elements inside it but only an image background. Which images are you trying to change on hover? Kindly provide us a bit more info so that we could assist you further.
August 16, 2016 at 6:54 pm #1134334
Brent-StParticipantHi Jade,
http://command-shift.com/callinex/#projects
the background image of the drill rig and open pit mine is the image i am looking to animate on hover.
thanks,
Brent
August 17, 2016 at 1:36 am #1134773
RupokMemberHi Brent,
That’s what I can see on the section – http://prntscr.com/c6q8e9
Is it correct? I can’t see such implementation there hence confused about the issue. Would you clarify a bit that what you did so far?
Thanks!
August 17, 2016 at 12:11 pm #1135446
Brent-StParticipantHi,
I have added the following cod to the css customizer:
a.x-img.projects {
background: url(http://command-shift.com/callinex/wp-content/uploads/2016/07/manitoba-exploration-zinc-depsoits-e1471140381873.jpg) no-repeat center top;
background-size: contain;
transition: 0.25s all ease-in-out;
}a.x-img.projects:hover img {
opacity: 0;
transition: 0.25s all ease-in-out;
}a.x-img[class*=“projects”] img {
transition: 0.25s all ease-in-out;
}“projects” is the css class i have assigned to the image.
Is there anything i am missing?
thanks,
Brent
August 17, 2016 at 2:32 pm #1135646
JadeModeratorHi Brent,
Please try to add this code in the customizer:
.projects.bg-image:before { transition: 0.25s all ease-in-out; } .projects.bg-image:hover:before { content: ""; position: absolute; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.5); }Hope this helps.
August 18, 2016 at 1:04 pm #1137226
Brent-StParticipantthat did the trick.
thanks very much
Brent
August 18, 2016 at 2:46 pm #1137379
JoaoModeratorGlad to hear it Brent.
Let us know if we can help with anything else.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1134145 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
