Skip to content

Commit d508720

Browse files
committed
Make sure library works fine with the latest animate.css
1 parent 8848dc7 commit d508720

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

index.html

+7-11
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
66
<meta charset="UTF-8" />
7-
87
<title>rmodal.js</title>
98

109
<link rel="stylesheet" href="https://unpkg.com/bootstrap/dist/css/bootstrap.min.css" />
1110
<link rel="stylesheet" href="https://unpkg.com/animate.css/animate.css" type="text/css" />
12-
1311
<link rel="stylesheet" href="dist/rmodal-no-bootstrap.css" type="text/css" />
14-
<script type="text/javascript" src="dist/rmodal.js"></script>
1512

13+
<script type="text/javascript" src="dist/rmodal.js"></script>
1614
<script type="text/javascript">
1715
window.onload = function() {
1816
var modal = new RModal(document.getElementById('modal'), {
@@ -29,14 +27,13 @@
2927
},
3028
afterClose: function() {
3129
console.log('closed');
32-
}
33-
34-
// content: 'Abracadabra',
35-
30+
},
31+
dialogOpenClass: 'animate__slideInDown',
32+
dialogCloseClass: 'animate__slideOutUp'
3633
// bodyClass: 'modal-open',
3734
// dialogClass: 'modal-dialog-lg',
38-
// dialogOpenClass: 'fadeIn',
39-
// dialogCloseClass: 'fadeOut',
35+
36+
// content: 'Abracadabra',
4037

4138
// focus: true,
4239
// focusElements: ['input.form-control', 'textarea', 'button.btn-primary'],
@@ -58,9 +55,8 @@
5855
</script>
5956
</head>
6057
<body>
61-
6258
<div id="modal" class="modal">
63-
<div class="modal-dialog animated">
59+
<div class="modal-dialog animate__animated">
6460
<div class="modal-content">
6561
<form class="form-horizontal" method="get">
6662
<div class="modal-header">

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rmodal",
3-
"version": "1.0.37",
3+
"version": "1.0.38",
44
"description": "A simple modal dialog with no external dependencies. IE9+ supported.",
55
"main": "index.js",
66
"module": "index.es.js",
@@ -13,7 +13,8 @@
1313
"build:umd-min": "cross-env UGLIFY_JS=true rollup -f umd -c ./rollup.config.js -o ./dist/rmodal.min.js",
1414
"build:es": "rollup -f esm -c ./rollup.config.js -o ./index.es.js",
1515
"build:cjs": "rollup -f cjs -c ./rollup.config.js -o ./index.js",
16-
"build": "concurrently npm:build:umd npm:build:umd-min npm:build:es npm:build:cjs",
16+
"build:copy-css": "cp ./src/*.css ./dist",
17+
"build": "concurrently npm:build:umd npm:build:umd-min npm:build:es npm:build:cjs npm:build:copy-css",
1718
"prepare": "npm run build && npm run test"
1819
},
1920
"files": [

0 commit comments

Comments
 (0)