Coder Social home page Coder Social logo

light-modal's Introduction

Hi, I am Aslam ๐Ÿ‘‹

On github i create awesome stuff to make my life and others easy. I love playing and working with CSS. I like contributing to opensource too.

Aslam's github stats

Other โœจโœจโœจโœจ

  • Currenlty working on Codedmails
  • If you like giving Kudos, checkout ๐Ÿฅ Online Kudos Creator - share love and appreciation ๐Ÿ’Œ๐Ÿ’Œ๐Ÿ’Œ
  • Checkout cool stuff i built on Codepen ๐Ÿ–Š๏ธ๐Ÿ–Š๏ธ๐Ÿ–Š๏ธ
  • Read some of my articles on DEV โœ๐Ÿพโœ๐Ÿพโœ๐Ÿพ
  • Co-authored a book on Bulma.io ๐Ÿ“—๐Ÿ“—๐Ÿ“—
  • Helping community on Stackoverflow ๐Ÿค๐Ÿค๐Ÿค

light-modal's People

Contributors

hunzaboy avatar kjbrum avatar qathom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

light-modal's Issues

Close button

Closing the modal (with corner close icon) scrolls me back to the top of the page... any suggestion why this happens?

Trigger via javascript

Is there any chance to show modal when page loads?
I've tried to create hidden a tag with .trigger('click'); on $( document ).ready() but it didn't work.

Gallery mode

hi there,
I need to replace my iziModal component and this is the best adept. There's missing me one thing - gallery mode that makes possible to switching between modals without close them.
Is possible to implement this feature please?

Jump to top after closing.

Hi, awesome job man.
I really like how this works, but got one issue.

After opening modal for example in the middle of the page, closing it cause jump to top.
Is there any way to change this behaviour?

Of course everything is set exactly like in demo, i'm just playing with this.

Scrolling to top behavior

Hi! I have a scroll-to-top when I click the both close buttons, when the modal is closed, the browser window goes to the top.

How can prevent this behavior, I already tried to use the "fixed" attribute in the body, and the preventdefault with JS.

Thanks

Accessibility

Nice work,

But for the record this kind of work lacks all the accessibilty features provided by common modal scripts.
And without JS it will never be able to have all the mandatory features to pass any accessibilty validation (WCAG, section 508, ...) .

I think this should be emphasized on the "Readme/how to use" to avoid this kind of "proof of concept" project to go live on any website where it could prevent real users from accessing important content.

Remove scrollbar

How to remove scrollbar from modal? I tried:

.light-modal {
    overflow:hidden;
}
.light-modal-body {
    overflow-y: auto;
    overflow:auto;
}

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.