Get started with avgrund CDN

MIT licensed

Avgrund is a lightweight library for creating responsive and customizable modals and dialogs.

Tags:
  • avgrund
  • css3
  • js
  • ui

Stable version

Copied!

How to start using avgrund CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with avgrund CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/avgrund@0.1.0/css/avgrund.min.css">
  <script src="https://cdn.cdnhub.io/avgrund/0.1.0/js/avgrund.min.js"></script>
</head>
<body>
  <button id="openModal">Open Modal</button>

  <script>
    const modal = new avgrund.Modal({
      id: 'myModal',
      title: 'Avgrund Example',
      content: 'This is an example of using Avgrund library.',
      width: 400,
      height: 200,
      closeOnOutsideClick: false,
      closeOnEscKey: false,
    });

    document.getElementById('openModal').addEventListener('click', () => {
      modal.open();
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions