- This topic is empty.
-
AuthorPosts
-
April 3, 2014 at 2:23 am #167442shirdavidParticipant
What I need to change in this code in order to make animated gif working on hover?
how I can control each image?….#projectThumbs .project {
position: relative;
}
#projectThumbs .project .project-title {
position: absolute;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 100%;
text-align: left;
opacity: 0;
-o-transition: opacity 0.2s ease-out;
-ms-transition: opacity 0.2s ease-out;
-moz-transition: opacity 0.2s ease-out;
-webkit-transition: opacity 0.2s ease-out;
transition: opacity 0.2s ease-out;
}
#projectThumbs .project .project-title:hover {
opacity: 1;
-o-transition: opacity 0.1s ease-in;
-ms-transition: opacity 0.1s ease-in;
-moz-transition: opacity 0.1s ease-in;
-webkit-transition: opacity 0.1s ease-in;
transition: opacity 0.1s ease-in;
}
#projectThumbs .project .project-title:before {
content:”;
display:inline-block;
vertical-align:down;
height:90%;
}April 3, 2014 at 2:40 am #167443Paulie_DMemberWe’d need to see your HTML & CSS (and the image) in a Codepen.io example.
For instance, there is no image in that CSS so we have no idea what is going on.
Also this
#projectThumbs .project .project-title:before { content:”; /* should be content:""; */ display:inline-block; vertical-align:down; /* no such value as 'down' */ height:90%; }
April 3, 2014 at 3:48 am #167445shirdavidParticipantHey, Thanks!
I don’t have access to the html of the template…
this css is the only thing I put in order to get the thumbnail title to appear on hover.and this is also the only way that I can change stuff in squarspace…
do you think that there is a code that I can try and see if it can help me?
April 3, 2014 at 3:51 am #167446Paulie_DMemberIs the image inline (in the HTML) or is it supposed to be a background image?
April 3, 2014 at 3:55 am #167447shirdavidParticipantmmm…
I’m not sure about it. I can just tell you that whatever code it will be I will need to connect it to 2 URL’s- one background and one gif animation…
April 3, 2014 at 5:15 am #167450Paulie_DMemberSorry…you really aren’t helping yourself here.
Will the gif be in the background?
If the gig is the background, what element will have this background.
If the gif is not the background, what element will the image be in.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.