Max Hastings's profile picture

Published by

published
updated

Category: Art and Photography

Animate your SpaceHey page

Here's an example on how to animate an image behind your profile.

If you want it to show up in front remove z-index.


<img height=64 width=64 id="Bitcoin" src="https://s2.coinmarketcap.com/static/img/coins/200x200/1831.png">

<style>
#Bitcoin{
  positionabsolute;
  animation-name: bitcoinAnimation;
  animation-duration5s;
  animation-iteration-countinfinite;
  z-index-1;
}
@keyframes bitcoinAnimation {
  0%   {top10%left:10%}
  25%  {top10%left:90%}
  50%  {top90%left:90%}
  75%  {top90%left:10%}
  100%   {top10%left:10%}
}
</style>


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )