MAWStudios

MAWStudios Forums => General Discussion => Topic started by: Jadedacat1976 on March 15, 2023, 07:42:20 AM

Title: Your ad is messed up
Post by: Jadedacat1976 on March 15, 2023, 07:42:20 AM
This ad is a bit messed up, when you hover it puts a slightly off gif to the side.
Title: Re: Your ad is messed up
Post by: MoonWolf63 on March 22, 2023, 07:53:54 AM
Oh thats because im terrible at web development
Title: Re: Your ad is messed up
Post by: Angela on July 04, 2023, 04:49:04 PM
Quote from: MoonWolf63 on March 22, 2023, 07:53:54 AMOh thats because im terrible at web development
I could try and fix it if you want.
Title: Re: Your ad is messed up
Post by: Heidi on June 02, 2024, 11:17:23 PM
Wolf, your hover effect is a joke. Instead of showing the GIF beside the image, you should swap the image with the GIF on hover. Here's how you can fix it:

Use this for the HTML
<a href="#" class="hover-img">
    <img src="static-image.png" alt="Static Image" class="static">
    <img src="animated-image.gif" alt="Animated Image" class="animated" style="display:none;">
</a>

.hover-img:hover .static {
    display: none;
}
.hover-img:hover .animated {
    display: inline;
}
Title: Re: Your ad is messed up
Post by: MoonWolf63 on July 12, 2024, 09:51:34 PM
Quote from: Heidi on June 02, 2024, 11:17:23 PMWolf, your hover effect is a joke. Instead of showing the GIF beside the image, you should swap the image with the GIF on hover. Here's how you can fix it:

Use this for the HTML
<a href="#" class="hover-img">
    <img src="static-image.png" alt="Static Image" class="static">
    <img src="animated-image.gif" alt="Animated Image" class="animated" style="display:none;">
</a>

.hover-img:hover .static {
    display: none;
}
.hover-img:hover .animated {
    display: inline;
}

I tried this but it just caused a bunch of glitchiness
Title: Re: Your ad is messed up
Post by: Heidi on July 12, 2024, 09:54:43 PM
Quote from: MoonWolf63 on July 12, 2024, 09:51:34 PM
Quote from: Heidi on June 02, 2024, 11:17:23 PMWolf, your hover effect is a joke. Instead of showing the GIF beside the image, you should swap the image with the GIF on hover. Here's how you can fix it:

Use this for the HTML
<a href="#" class="hover-img">
    <img src="static-image.png" alt="Static Image" class="static">
    <img src="animated-image.gif" alt="Animated Image" class="animated" style="display:none;">
</a>

.hover-img:hover .static {
    display: none;
}
.hover-img:hover .animated {
    display: inline;
}

What kind of glitchiness?

I tried this but it just caused a bunch of glitchiness
Title: Re: Your ad is messed up
Post by: MoonWolf63 on July 12, 2024, 09:56:34 PM
Quote from: Heidi on July 12, 2024, 09:54:43 PM
Quote from: MoonWolf63 on July 12, 2024, 09:51:34 PM
Quote from: Heidi on June 02, 2024, 11:17:23 PMWolf, your hover effect is a joke. Instead of showing the GIF beside the image, you should swap the image with the GIF on hover. Here's how you can fix it:

Use this for the HTML
<a href="#" class="hover-img">
    <img src="static-image.png" alt="Static Image" class="static">
    <img src="animated-image.gif" alt="Animated Image" class="animated" style="display:none;">
</a>

.hover-img:hover .static {
    display: none;
}
.hover-img:hover .animated {
    display: inline;
}

What kind of glitchiness?

I tried this but it just caused a bunch of glitchiness

Well it keeps repeatedly disappearing without actually showing the gif. So it just makes the image disappear, shows nothing, then glitches because nothing is showing then brings the image back. And it keeps doing that.
Title: Re: Your ad is messed up
Post by: Heidi on July 12, 2024, 10:00:36 PM
Try this then

<a href="#" class="hover-img">
    <img src="static-image.png" alt="Static Image" class="static">
    <img src="animated-image.gif" alt="Animated Image" class="animated" style="opacity:0;">
</a>

.hover-img .animated {
    transition: opacity 0.5s ease-in-out;
}

.hover-img:hover .static {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hover-img:hover .animated {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}