Get started with reframe.js CDN

MIT licensed

Refrase.js: Automatically rephrases JS text for accessibility, readability.

Tags:
  • js
  • iframes
  • fluid
  • responsive
  • video
  • fitvids
  • youtube
  • embeds
  • padding-top

Stable version

Copied!

How to start using reframe.js CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with reframe.js CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/reframe.js/4.0.2/reframe.min.js"></script>
  <style>
    #my-image { width: 100%; height: auto; }
  </style>
</head>
<body>
  <img id="my-image" src="image.jpg" alt="Example image">
  <script>
    RefraME.registerPlugin(function(reframe) {
      reframe('my-image', function(imageRef) {
        imageRef.width(100).height('auto');
      });
    });

    RefraME();
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions