I have the following animation and keyframes
@keyframes slideOutRight {
0% {
transform: translateX(0);
opacity: 1;
}
100% {
transform: translateX(1000px);
opacity: 0;
}
}
.animate-slideOutRight {
-webkit-animation: slideOutRight .5s cubic-bezier(.25,.46,.45,.94);
animation: slideOutRight .5s cubic-bezier(.25,.46,.45,.94);
}
<div class="animate-slideOutRight ">
<p>Hello</p>
</div>
However, after the animation is complete, it doesn't stay at opacity:0 and the item is visible.
What am I missing?