@keyframes myOwnAnimation { from { bottom: 0; } to { top: 0; } } .myOwnClass { position:fixed; bottom:0; right: 0; animation-name: myOwnAnimation; animation-duration: 3s; }