Code Monkey home page Code Monkey logo

codedbyglenden / super-simple-modals Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 85 KB

Super Simple Modals is a small Vanilla JavaScript library that does what it says on the tin. Allow you to create pop-up modals on your website in no time, with a tiny amount of code.

Home Page: https://super-simple-modals.vercel.app

License: GNU General Public License v3.0

JavaScript 86.63% SCSS 13.37%
accessibility css javascript modal modal-dialog vanilla vanilla-javascript

super-simple-modals's People

Contributors

codedbyglenden avatar

Stargazers

 avatar

Watchers

 avatar

super-simple-modals's Issues

Backwards compatible Styles & JS

Discussed in #6

Originally posted by TheOneAndOnlyZulu March 8, 2022
We want to use the latest & greatest in the world of JS & css, but we should also think of the poor souls that need to support IE ๐Ÿคฎ

  • One set of css/js files for modern browsers that will only work on the latest patch of all browsers
  • One set of css/js files for elderly browsers IE 11 (I refuse to support anything earlier than IE11).

Example 4 - Long content example

Demo how to handle long content, & keep focus at the top of the modal instead of tabbing to the first focusable element which could be at the bottom of the modal (scrolling the user past the content).

Open / close animations

Discussed in #4

Originally posted by TheOneAndOnlyZulu March 8, 2022
Add open / close animations as a minor SCSS file that can be optionally enqueued alongside the base styles.

  • Styles should account for prefers-reduced-motion

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.