Having this as a functional slidedown effect:
::-webkit-scrollbar {
width: 0px; /* remove scrollbar space */
background: transparent;
}
/* optional: show position indicator in red */
::-webkit-scrollbar-thumb {
background: #FF0000;
}
@-webkit-keyframes slideDown {
0%, 100% { -webkit-transform: translateY(-485px); }
10%, 90% { -webkit-transform: translateY(0px); }
}
@-moz-keyframes slideDown {
0%, 100% { -moz-transform: translateY(-485px); }
10%, 90% { -moz-transform: translateY(0px); }
}
.cssanimations.csstransforms #note {
-webkit-transform: translateY(-485px);
-webkit-animation: slideDown 20.5s 1.0s 1 ease forwards;
-moz-transform: translateY(-50px);
-moz-animation: slideDown 20.5s 1.0s 1 ease forwards;
}
html:
<div id="note">
{{=XML(news)}}
</div>
I want to include a button for the user to close the slide if they don't wish to read the information. How can I achieve this without using JavaScript? Regards