Reader small image

You're reading from  Bootstrap 4 Cookbook

Product typeBook
Published inJun 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781785889295
Edition1st Edition
Languages
Right arrow
Author (1)
Ajdin Imsirovic
Ajdin Imsirovic
author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic

Right arrow

Integrating a fancy modal using animatedModal.js


In this recipe, we will combine the already great Bootstrap 4 card elements with the animatedModal.js jQuery plugin to create an awesome fullscreen modal with CSS3 transitions. We will use the ready-made transitions from animate.css, but we could create our own as well.

Getting ready

To get an idea of what animatedModal.js offers, navigate to its official website at http://joaopereirawd.github.io/animatedModal.js/. Also, make sure that you check out the GitHub repository at https://github.com/joaopereirawd/animatedModal.js. To reference animatedModal.js and animate.css, we will use GitCDN.xyz and cdnjs, respectively, as detailed in the following recipe.

How to do it…

  1. Include animate.css inside the head tag in app/_layout.ejs:
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.min.css">
  1. In app/recipe06-10.ejs, add the following code in between the HTML body tags:
<!--Call your modal-->
<a id="demo01...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Bootstrap 4 Cookbook
Published in: Jun 2017Publisher: PacktISBN-13: 9781785889295

Author (1)

author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic