There is no Element have name <z>
in HTML, You Should not Put ,
in the last Line so The right Code in HTML mey be Lik eThis:
<p>Hi there <div class="z">This is the text that needs the hover animation</div></p>
and CSS Like This :
.z {
color: red;
display: inline-block;
}
.z:hover {
transform: translate(0, -7px);
box-shadow: 0px, 32px, 25px, -8px rgba(0, 0, 0, .2);
}
Or You should add Closing Tag For p
Tag and Remove ,
in CSS Code and Replace it with ;
.
So Your Code Mey Be Like This:
<p>Hi there <z>This is the text that needs the hover animation<z></p>
and CSS Like This:
z {
color: red;
display: inline-block;
}
z:hover {
transform: translate(0, -7px);
box-shadow: 0px, 32px, 25px, -8px rgba(0, 0, 0, .2);
}