diff --git a/CHANGELOG.md b/CHANGELOG.md index ffe2e21..5da0ce1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `sweet-alert` will be documented in this file. +## v3.0.1 - 2019-11-27 +- Updated `animation($showClass = [], $hideClass = [])` to animation($showAnimation, $hideAnimation) +- Docs Updated +- Fixed animations issue + ## v3.0 - 2019-11-20 - Upgraded SweetAlert2 to latest version - Added option to pass SweetAlert2 CDN link from included view diff --git a/docs/_coverpage.md b/docs/_coverpage.md index 1d0b4a4..a8b7057 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,5 +1,5 @@ ![logo](https://github.com/sweetalert2/sweetalert2/raw/master/assets/swal2-logo.png) -

sweet-alert 3.0

+

sweet-alert 3.0.1

By Rashid Ali

diff --git a/docs/changelog.md b/docs/changelog.md index a463a0d..35dbb94 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,11 @@ All notable changes to `sweet-alert` will be documented in this file. +## v3.0.1 - 2019-11-27 +- Updated `animation($showClass = [], $hideClass = [])` to animation($showAnimation, $hideAnimation) +- Docs Updated +- Fixed animations issue + ## v3.0 - 2019-11-21 - Upgraded SweetAlert2 to latest version - Added option to pass SweetAlert2 CDN link from included view diff --git a/docs/environment.md b/docs/environment.md index d0f407d..e1ba1d3 100644 --- a/docs/environment.md +++ b/docs/environment.md @@ -69,18 +69,17 @@ |-------------------------------------------------------------------------- | Animation |-------------------------------------------------------------------------- -| If set to false, modal CSS animation will be disabled. +| Custom animation with [Animate.css](https://daneden.github.io/animate.css/) +| If set to false, modal CSS animation will be use default ones. | For specific modal just use the animation() helper method. | */ 'animation' => [ - 'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', true), - 'showClass' => env('SWEET_ALERT_ANIMATION_SHOW_CLASS', 'animated fadeInDown faster'), - 'hideClass' => env('SWEET_ALERT_ANIMATION_HIDE_CLASS', 'animated fadeOutUp faster'), + 'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', false), ], -'animatecss' => env('SWEET_ALERT_ANIMATECSS', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css'), +'animatecss' => env('SWEET_ALERT_ANIMATECSS', 'https://cdn.jsdelivr.net/npm/animate.css'), /* |-------------------------------------------------------------------------- @@ -136,6 +135,6 @@ 'toast_close_button' => env('SWEET_ALERT_MIDDLEWARE_TOAST_CLOSE_BUTTON', true), 'alert_auto_close' => env('SWEET_ALERT_MIDDLEWARE_ALERT_AUTO_CLOSE', 5000), -] +], ``` diff --git a/docs/helpers.md b/docs/helpers.md index 47a68f3..d87a054 100644 --- a/docs/helpers.md +++ b/docs/helpers.md @@ -178,19 +178,15 @@ alert('Title','Lorem Lorem Lorem', 'success')->background('#fff'); ##### Animation ` -animation($showClass = [], $hideClass = []) +animation($showAnimation, $hideAnimation) ` -> If set to false, modal CSS animation will be disabled. Custom animation with [Animate.css](https://daneden.github.io/animate.css/) ``` php // example: alert()->info('InfoAlert','Lorem ipsum dolor sit amet.') -->animation( - [ 'popup' => 'animated tada faster'], - [ 'popup' => 'animated fadeInUp faster'] -); +->animation('tada faster','fadeInUp faster'); ``` > Note: Animate.css CDN link is imported in package config file, diff --git a/docs/index.html b/docs/index.html index e9bbcf6..8e50929 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,6 +8,9 @@ + + +