I am currently working on Rob Dey's Upskill Crash Course on web development. Everything is going well but I had a question about the animation of my logo. Here is my code:
.navbar-default .navbar-brand, .navbar-default .navbar-nav > li > a { // Used for the 'Brand' button AKA devmatch on navbar and About button
color: white;
filter: blur(0.43px);
transition: 1s;
&:hover {
color: white;
opacity: 0.75;
transform: scale(1.1);
}
}
This code creates this sort of animation for my logo: https://i.stack.imgur.com/OjkgJ.jpg
It is all working well the only thing I'm wondering is if it's possible to stop the "snapping back into place" that seems to happen at the end of the transition. I fear the only way to stop it is to create my own animation and import it rather than using the transition modifier.
Thanks
Edit: I actually found somewhat of an answer below.
transform: scale (1.0); opacity: 1;
) to the non-hover css properties. This way new properties don't have be loaded when the transition starts or removed when it stops. Just a guess though.