intro.svg 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <svg fill="none" viewBox="0 0 600 300" width="600" height="300" xmlns="http://www.w3.org/2000/svg">
  2. <foreignObject width="100%" height="100%">
  3. <div xmlns="http://www.w3.org/1999/xhtml">
  4. <style>
  5. @keyframes hi {
  6. 0% { transform: rotate( 0.0deg) }
  7. 10% { transform: rotate(14.0deg) }
  8. 20% { transform: rotate(-8.0deg) }
  9. 30% { transform: rotate(14.0deg) }
  10. 40% { transform: rotate(-4.0deg) }
  11. 50% { transform: rotate(10.0deg) }
  12. 60% { transform: rotate( 0.0deg) }
  13. 100% { transform: rotate( 0.0deg) }
  14. }
  15. .container {
  16. display: flex;
  17. width: 100%;
  18. height: 300px;
  19. background-color: black;
  20. color: white;
  21. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  22. align-items: center;
  23. justify-content: center;
  24. }
  25. .hi {
  26. animation: hi 1.5s linear -0.5s infinite;
  27. display: inline-block;
  28. transform-origin: 70% 70%;
  29. }
  30. @media (prefers-reduced-motion) {
  31. .hi {
  32. animation: none;
  33. }
  34. }
  35. </style>
  36. <div class="container">
  37. <h1>Hi there, my name is Nikola <div class="hi">👋</div></h1>
  38. </div>
  39. </div>
  40. </foreignObject>
  41. </svg>