Get started with san CDN

MIT licensed

San is a minimalist JS MVVM framework for building web applications.

Tags:
  • component
  • framework
  • frontend
  • javascript
  • mvvm
  • san

Stable version

Copied!

How to start using san CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with san CDN - cdnhub.io</title>
  <style>
    #box {
      width: 100px;
      height: 100px;
      background-color: blue;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  </style>
</head>
<body>
  <script src="https://cdn.cdnhub.io/san/3.14.1/san.min.js"></script>
  <script>
    const box = document.querySelector('#box');

    SAN.init(document);

    const animation = SAN.sequence([
      SAN.animate(box, { transform: 'translate(200px, 0)' }, 1000),
      SAN.animate(box, { transform: 'translate(0, 0)' }, 1000),
    ]);

    animation.play();
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions