I want to implement a unique feature on my webpage where a fixed div initially appears fully visible and then slides away after a few seconds, revealing its normal mouseover functionality. The challenge is to achieve this effect using CSS or JavaScript if necessary.
The targeted div has the following code:
HTML
<a href="#" target="_blank">
<div id="calculator">Novated Lease Calculator</div>
</a>
CSS
#calculator {
width: 297px;
height: 60px;
margin: 0;
padding: 0;
text-indent: -9999px;
background: url("../img/calculator-button.png") no-repeat;
position: fixed;
top: 218px;
left: -247px;
z-index: 999;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s;
}
#calculator:hover {
left: 0;
}
If possible, I prefer a CSS solution for this challenge, but I am open to using JavaScript as an alternative if needed.