Bulma Modal FX
A set of modal window effects with CSS transitions and animations for Bulma. Very inspired by this Codrops resource/article https://github.com/codrops/ModalWindowEffects
Demo: https://postare.github.io/bulma-modal-fx Bulma docs: https://bulma.io/documentation
Effects
class modal-fx-
+ effect
example: modal-fx-newsPaper
- normal
- fadeInScale
- slideRight
- slideLeft
- slideTop
- slideBottom
- fall
- slideFall
- newsPaper
- 3dFlipVertical
- 3dFlipHorizontal
- 3dSign
- 3dSignDown
- superScaled
- 3dSlit
- 3dRotateFromBottom
- 3dRotateFromLeft
Examples
https://postare.github.io/bulma-modal-fx/
INSTALL
npm i bulma-modal-fx
or simply download latest release: https://github.com/postare/bulma-modal-fx/releases/
GETTING STARTED
Include the plugin css file:
(optional) Include the plugin just before body closing tag:
Or use a CDN
HTML MARKUP
<!-- trigger button -->Open modal <!-- related modal with fx class "modal-fx-fadeInScale" --> <!-- Any other Bulma elements you want --> <!-- To activate the modal, just add the is-active modifier on the .modal container -->[...]
MODIFIERS
Class modifiers for .modal
:
.modal-pos-top
: modal positioned on top.modal-pos-bottom
: modal positioned on bottom
Class modifiers for .modal-content
:
.is-huge
: 100% width modal.is-tiny
: 400px width modal.is-image
: if the content is an image
SASS VARIABLES
// Modal minimal setup ;;;;;