transition when page loads code example
Example 1: stop css transition from firing on page load
//Bug of chrome, add
</script> </script> //(white single space)
//in your HTML footer
Example 2: transition aftre page load
@keyframes slideInFromLeft {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0);
}
}
header {
animation: 1s ease-out 0s 1 slideInFromLeft;
background: #333;
padding: 30px;
}
body {margin: 0;font-family: "Segoe UI", Arial, Helvetica, Sans Serif;} a {text-decoration: none; display: inline-block; margin-right: 10px; color:#fff;}