phcthemes_web_theme_pack 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +0 -0
- data/Rakefile +32 -0
- data/app/assets/config/phcthemes_web_theme_pack_manifest.js +3 -0
- data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +1602 -0
- data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +2039 -0
- data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +1390 -0
- data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +3139 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +51 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +41 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +40 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +40 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +44 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +46 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +39 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +1 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +8 -0
- data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +7013 -0
- data/app/assets/javascripts/common/custom/custom.js +0 -0
- data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +1565 -0
- data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +1252 -0
- data/app/assets/javascripts/common/greenstock/greensock.js +36 -0
- data/app/assets/javascripts/common/icheck/icheck.js +509 -0
- data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +497 -0
- data/app/assets/javascripts/common/isotope/isotope.pkgd.js +3563 -0
- data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +246 -0
- data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +1 -0
- data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +281 -0
- data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +1650 -0
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +1281 -0
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +10 -0
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +1 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +1 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +1 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +6 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +1 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +11 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +2 -0
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +2 -0
- data/app/assets/javascripts/common/js-cookie/js.cookie.js +165 -0
- data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +13 -0
- data/app/assets/javascripts/common/layerslider/layerslider.origami.js +13 -0
- data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +13 -0
- data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +13 -0
- data/app/assets/javascripts/common/leaflet/leaflet.js +5 -0
- data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +1860 -0
- data/app/assets/javascripts/common/mapbox/mapbox.js +51 -0
- data/app/assets/javascripts/common/moderizer/modernizr.js +11 -0
- data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +3448 -0
- data/app/assets/javascripts/common/pace/pace.js +935 -0
- data/app/assets/javascripts/common/paroller/jquery.paroller.js +228 -0
- data/app/assets/javascripts/common/particlejs/particles.js +1541 -0
- data/app/assets/javascripts/common/plyr/plyr.js +9137 -0
- data/app/assets/javascripts/common/rangeslider/rangeslider.js +498 -0
- data/app/assets/javascripts/common/retina/retina.js +100 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +386 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +365 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +199 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +2524 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +260 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +1156 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +465 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +1447 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +1464 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +3286 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +8710 -0
- data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +168 -0
- data/app/assets/javascripts/common/select2/select2.full.js +6597 -0
- data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +1092 -0
- data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +788 -0
- data/app/assets/javascripts/common/spectrum/spectrum.js +2323 -0
- data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +339 -0
- data/app/assets/javascripts/common/swiper/swiper.js +8124 -0
- data/app/assets/javascripts/common/typed/typed.js +1045 -0
- data/app/assets/javascripts/common/visable/jquery.visible.js +68 -0
- data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +662 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_appstrap.js +11 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_basic.js +39 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_bold.js +34 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_coloradmin.js +12 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_devine_villas.js +20 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_smarty.js +57 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_xero.js +18 -0
- data/app/assets/javascripts/phcthemes_web_theme_pack_zoner.js +24 -0
- data/app/assets/javascripts/themes/appstrap/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/appstrap/theme/custom-script.js +69 -0
- data/app/assets/javascripts/themes/appstrap/theme/script.js +3096 -0
- data/app/assets/javascripts/themes/basic/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/bold/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/coloradmin/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/coloradmin/theme/apps.js +236 -0
- data/app/assets/javascripts/themes/devine_villas/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/devine_villas/theme/dashboard.js +19 -0
- data/app/assets/javascripts/themes/devine_villas/theme/main.js +384 -0
- data/app/assets/javascripts/themes/devine_villas/theme/map.js +563 -0
- data/app/assets/javascripts/themes/devine_villas/theme/searchmap.js +69 -0
- data/app/assets/javascripts/themes/smarty/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/smarty/theme/scripts.js +4271 -0
- data/app/assets/javascripts/themes/xero/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/xero/theme/app.js +696 -0
- data/app/assets/javascripts/themes/zoner/custom-maps/custom-map.js +289 -0
- data/app/assets/javascripts/themes/zoner/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/zoner/draggable/draggable.js +196 -0
- data/app/assets/javascripts/themes/zoner/jquery-dependclass/dependclass.js +56 -0
- data/app/assets/javascripts/themes/zoner/jquery-slider/jquery.slider.js +700 -0
- data/app/assets/javascripts/themes/zoner/jquery-vanillabox/jquery.vanillabox.min.js +24 -0
- data/app/assets/javascripts/themes/zoner/jshashtable/hashtable.js +402 -0
- data/app/assets/javascripts/themes/zoner/numberformatter/numberformatter.js +566 -0
- data/app/assets/javascripts/themes/zoner/simple-js-templating/tmpl.js +35 -0
- data/app/assets/javascripts/themes/zoner/theme/main.js +667 -0
- data/app/assets/stylesheets/common/custom/custom.scss +0 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_appstrap.scss +28 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_basic.scss +0 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_bold.scss +21 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_coloradmin.scss +22 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_devine_villas.scss +28 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_smarty.scss +47 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_xero.scss +28 -0
- data/app/assets/stylesheets/phcthemes_web_theme_pack_zoner.scss +22 -0
- data/app/assets/stylesheets/themes/appstrap/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/bold/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/coloradmin/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/devine_villas/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/smarty/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/xero/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/zoner/custom/custom.scss +0 -0
- data/lib/phcthemes_web_theme_pack.rb +5 -0
- data/lib/phcthemes_web_theme_pack/engine.rb +13 -0
- data/lib/phcthemes_web_theme_pack/version.rb +3 -0
- data/lib/tasks/phcthemes_web_theme_pack_tasks.rake +4 -0
- metadata +375 -0
@@ -0,0 +1,1447 @@
|
|
1
|
+
/************************************************
|
2
|
+
* REVOLUTION 5.4.6.5 EXTENSION - SLIDE ANIMATIONS
|
3
|
+
* @version: 1.8 (17.05.2017)
|
4
|
+
* @requires jquery.themepunch.revolution.js
|
5
|
+
* @author ThemePunch
|
6
|
+
************************************************/
|
7
|
+
(function($) {
|
8
|
+
"use strict";
|
9
|
+
var _R = jQuery.fn.revolution,
|
10
|
+
extension = { alias:"SlideAnimations Min JS",
|
11
|
+
name:"revolution.extensions.slideanims.min.js",
|
12
|
+
min_core: "5.4.5",
|
13
|
+
version:"1.8"
|
14
|
+
};
|
15
|
+
|
16
|
+
///////////////////////////////////////////
|
17
|
+
// EXTENDED FUNCTIONS AVAILABLE GLOBAL //
|
18
|
+
///////////////////////////////////////////
|
19
|
+
jQuery.extend(true,_R, {
|
20
|
+
|
21
|
+
animateSlide : function(nexttrans, comingtransition, container, nextli, actli, nextsh, actsh, mtl) {
|
22
|
+
if (_R.compare_version(extension).check==="stop") return mtl;
|
23
|
+
return animateSlideIntern(nexttrans, comingtransition, container, nextli, actli, nextsh, actsh, mtl)
|
24
|
+
}
|
25
|
+
|
26
|
+
});
|
27
|
+
|
28
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
29
|
+
/////////////////////////////////////////////////////////////////////////////// SLIDE TRANSITION MODULES ////////////////////////////////////////////////////
|
30
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
31
|
+
|
32
|
+
|
33
|
+
//////////////////////////////////////////////////////
|
34
|
+
//
|
35
|
+
// * Revolution Slider - TRANSITION PREDEFINITION MODULES
|
36
|
+
// * @version: 5.0.0 (13.02.2015)
|
37
|
+
// * @author ThemePunch
|
38
|
+
//
|
39
|
+
//////////////////////////////////////////////////////
|
40
|
+
|
41
|
+
|
42
|
+
///////////////////////
|
43
|
+
// PREPARE THE SLIDE //
|
44
|
+
//////////////////////
|
45
|
+
var prepareOneSlide = function(slotholder,opt,visible,vorh) {
|
46
|
+
|
47
|
+
var sh=slotholder,
|
48
|
+
img = sh.find('.defaultimg'),
|
49
|
+
mediafilter = img.data('mediafilter'),
|
50
|
+
scalestart = sh.data('zoomstart'),
|
51
|
+
rotatestart = sh.data('rotationstart');
|
52
|
+
|
53
|
+
if (img.data('currotate')!=undefined)
|
54
|
+
rotatestart = img.data('currotate');
|
55
|
+
if (img.data('curscale')!=undefined && vorh=="box")
|
56
|
+
scalestart = img.data('curscale')*100;
|
57
|
+
else
|
58
|
+
if (img.data('curscale')!=undefined)
|
59
|
+
scalestart = img.data('curscale');
|
60
|
+
|
61
|
+
_R.slotSize(img,opt);
|
62
|
+
|
63
|
+
|
64
|
+
var src = img.attr('src'),
|
65
|
+
bgcolor=img.data('bgcolor'),
|
66
|
+
w = opt.width,
|
67
|
+
h = opt.height,
|
68
|
+
fulloff = img.data("fxof"),
|
69
|
+
fullyoff=0;
|
70
|
+
|
71
|
+
|
72
|
+
if (bgcolor===undefined) bgcolor = img.css("backgroundColor");
|
73
|
+
|
74
|
+
|
75
|
+
if (opt.autoHeight=="on") h = opt.c.height();
|
76
|
+
if (fulloff==undefined) fulloff=0;
|
77
|
+
|
78
|
+
var off=0,
|
79
|
+
bgfit = img.data('bgfit'),
|
80
|
+
bgrepeat = img.data('bgrepeat'),
|
81
|
+
bgposition = img.data('bgposition');
|
82
|
+
|
83
|
+
if (bgfit==undefined) bgfit="cover";
|
84
|
+
if (bgrepeat==undefined) bgrepeat="no-repeat";
|
85
|
+
if (bgposition==undefined) bgposition="center center";
|
86
|
+
|
87
|
+
var bgstyle ='';
|
88
|
+
|
89
|
+
if (bgcolor!==undefined && bgcolor.indexOf('gradient')>=0) {
|
90
|
+
bgstyle = 'background:'+bgcolor;
|
91
|
+
} else {
|
92
|
+
bgstyle = 'background-color:'+bgcolor+';'+'background-image:url('+src+');'+'background-repeat:'+bgrepeat+';'+'background-size:'+bgfit+';background-position:'+bgposition;
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
switch (vorh) {
|
98
|
+
// BOX ANIMATION PREPARING
|
99
|
+
case "box":
|
100
|
+
// SET THE MINIMAL SIZE OF A BOX
|
101
|
+
//var basicsize = 0,
|
102
|
+
var x = 0,
|
103
|
+
y = 0;
|
104
|
+
|
105
|
+
/*if (opt.sloth>opt.slotw)
|
106
|
+
basicsize=opt.sloth
|
107
|
+
else
|
108
|
+
basicsize=opt.slotw;
|
109
|
+
|
110
|
+
opt.slotw = basicsize;
|
111
|
+
opt.sloth = basicsize;*/
|
112
|
+
|
113
|
+
|
114
|
+
for (var j=0;j<opt.slots;j++) {
|
115
|
+
y=0;
|
116
|
+
for (var i=0;i<opt.slots;i++) {
|
117
|
+
|
118
|
+
sh.append('<div class="slot" '+
|
119
|
+
'style="position:absolute;'+
|
120
|
+
'top:'+(fullyoff+y)+'px;'+
|
121
|
+
'left:'+(fulloff+x)+'px;'+
|
122
|
+
'width:'+opt.slotw+'px;'+
|
123
|
+
'height:'+opt.sloth+'px;'+
|
124
|
+
'overflow:hidden;">'+
|
125
|
+
|
126
|
+
'<div class="slotslide '+mediafilter+'" data-x="'+x+'" data-y="'+y+'" '+
|
127
|
+
'style="position:absolute;'+
|
128
|
+
'top:'+(0)+'px;'+
|
129
|
+
'left:'+(0)+'px;'+
|
130
|
+
'width:'+opt.slotw+'px;'+
|
131
|
+
'height:'+opt.sloth+'px;'+
|
132
|
+
'overflow:hidden;">'+
|
133
|
+
|
134
|
+
'<div style="position:absolute;'+
|
135
|
+
'top:'+(0-y)+'px;'+
|
136
|
+
'left:'+(0-x)+'px;'+
|
137
|
+
'width:'+w+'px;'+
|
138
|
+
'height:'+h+'px;'+bgstyle+';">'+
|
139
|
+
'</div></div></div>');
|
140
|
+
y=y+opt.sloth;
|
141
|
+
if (scalestart!=undefined && rotatestart!=undefined)
|
142
|
+
punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart});
|
143
|
+
}
|
144
|
+
x=x+opt.slotw;
|
145
|
+
}
|
146
|
+
break;
|
147
|
+
|
148
|
+
// SLOT ANIMATION PREPARING
|
149
|
+
case "vertical":
|
150
|
+
case "horizontal":
|
151
|
+
|
152
|
+
if (vorh == "horizontal") {
|
153
|
+
|
154
|
+
if (!visible) var off=0-opt.slotw;
|
155
|
+
for (var i=0;i<opt.slots;i++) {
|
156
|
+
sh.append('<div class="slot" style="position:absolute;'+
|
157
|
+
'top:'+(0+fullyoff)+'px;'+
|
158
|
+
'left:'+(fulloff+(i*opt.slotw))+'px;'+
|
159
|
+
'overflow:hidden;width:'+(opt.slotw+0.3)+'px;'+
|
160
|
+
'height:'+h+'px">'+
|
161
|
+
'<div class="slotslide '+mediafilter+'" style="position:absolute;'+
|
162
|
+
'top:0px;left:'+off+'px;'+
|
163
|
+
'width:'+(opt.slotw+0.6)+'px;'+
|
164
|
+
'height:'+h+'px;overflow:hidden;">'+
|
165
|
+
'<div style="position:absolute;top:0px;'+
|
166
|
+
'left:'+(0-(i*opt.slotw))+'px;'+
|
167
|
+
'width:'+w+'px;height:'+h+'px;'+bgstyle+';">'+
|
168
|
+
'</div></div></div>');
|
169
|
+
if (scalestart!=undefined && rotatestart!=undefined)
|
170
|
+
punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart});
|
171
|
+
|
172
|
+
}
|
173
|
+
} else {
|
174
|
+
if (!visible) var off=0-opt.sloth;
|
175
|
+
for (var i=0;i<opt.slots+2;i++) {
|
176
|
+
sh.append('<div class="slot" style="position:absolute;'+
|
177
|
+
'top:'+(fullyoff+(i*opt.sloth))+'px;'+
|
178
|
+
'left:'+(fulloff)+'px;'+
|
179
|
+
'overflow:hidden;'+
|
180
|
+
'width:'+w+'px;'+
|
181
|
+
'height:'+(opt.sloth)+'px">'+
|
182
|
+
|
183
|
+
'<div class="slotslide '+mediafilter+'" style="position:absolute;'+
|
184
|
+
'top:'+(off)+'px;'+
|
185
|
+
'left:0px;width:'+w+'px;'+
|
186
|
+
'height:'+opt.sloth+'px;'+
|
187
|
+
'overflow:hidden;">'+
|
188
|
+
'<div style="position:absolute;'+
|
189
|
+
'top:'+(0-(i*opt.sloth))+'px;'+
|
190
|
+
'left:0px;'+
|
191
|
+
'width:'+w+'px;height:'+h+'px;'+bgstyle+';">'+
|
192
|
+
|
193
|
+
'</div></div></div>');
|
194
|
+
if (scalestart!=undefined && rotatestart!=undefined)
|
195
|
+
punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart});
|
196
|
+
|
197
|
+
}
|
198
|
+
}
|
199
|
+
break;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
var getSliderTransitionParameters = function(container,comingtransition,nextsh,slidedirection) {
|
206
|
+
|
207
|
+
|
208
|
+
/* Transition Name ,
|
209
|
+
Transition Code,
|
210
|
+
Transition Sub Code,
|
211
|
+
Max Slots,
|
212
|
+
MasterSpeed Delays,
|
213
|
+
Preparing Slots (box,slideh, slidev),
|
214
|
+
Call on nextsh (null = no, true/false for visibility first preparing),
|
215
|
+
Call on actsh (null = no, true/false for visibility first preparing),
|
216
|
+
Index of Animation
|
217
|
+
easeIn,
|
218
|
+
easeOut,
|
219
|
+
speed,
|
220
|
+
slots,
|
221
|
+
*/
|
222
|
+
|
223
|
+
|
224
|
+
var opt=container[0].opt,
|
225
|
+
p1i = punchgs.Power1.easeIn,
|
226
|
+
p1o = punchgs.Power1.easeOut,
|
227
|
+
p1io = punchgs.Power1.easeInOut,
|
228
|
+
p2i = punchgs.Power2.easeIn,
|
229
|
+
p2o = punchgs.Power2.easeOut,
|
230
|
+
p2io = punchgs.Power2.easeInOut,
|
231
|
+
p3i = punchgs.Power3.easeIn,
|
232
|
+
p3o = punchgs.Power3.easeOut,
|
233
|
+
p3io = punchgs.Power3.easeInOut,
|
234
|
+
flatTransitions = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],
|
235
|
+
premiumTransitions = [16,17,18,19,20,21,22,23,24,25,27],
|
236
|
+
nexttrans =0,
|
237
|
+
specials = 1,
|
238
|
+
STAindex = 0,
|
239
|
+
indexcounter =0,
|
240
|
+
STA = new Array,
|
241
|
+
transitionsArray = [ ['boxslide' , 0, 1, 10, 0,'box',false,null,0,p1o,p1o,500,6],
|
242
|
+
['boxfade', 1, 0, 10, 0,'box',false,null,1,p1io,p1io,700,5],
|
243
|
+
['slotslide-horizontal', 2, 0, 0, 200,'horizontal',true,false,2,p2io,p2io,700,3],
|
244
|
+
['slotslide-vertical', 3, 0,0,200,'vertical',true,false,3,p2io,p2io,700,3],
|
245
|
+
['curtain-1', 4, 3,0,0,'horizontal',true,true,4,p1o,p1o,300,5],
|
246
|
+
['curtain-2', 5, 3,0,0,'horizontal',true,true,5,p1o,p1o,300,5],
|
247
|
+
['curtain-3', 6, 3,25,0,'horizontal',true,true,6,p1o,p1o,300,5],
|
248
|
+
['slotzoom-horizontal', 7, 0,0,400,'horizontal',true,true,7,p1o,p1o,300,7],
|
249
|
+
['slotzoom-vertical', 8, 0,0,0,'vertical',true,true,8,p2o,p2o,500,8],
|
250
|
+
['slotfade-horizontal', 9, 0,0,1000,'horizontal',true,null,9,p2o,p2o,2000,10],
|
251
|
+
['slotfade-vertical', 10, 0,0 ,1000,'vertical',true,null,10,p2o,p2o,2000,10],
|
252
|
+
['fade', 11, 0, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
253
|
+
['crossfade', 11, 1, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
254
|
+
['fadethroughdark', 11, 2, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
255
|
+
['fadethroughlight', 11, 3, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
256
|
+
['fadethroughtransparent', 11, 4, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
257
|
+
['slideleft', 12, 0,1,0,'horizontal',true,true,12,p3io,p3io,1000,1],
|
258
|
+
['slideup', 13, 0,1,0,'horizontal',true,true,13,p3io,p3io,1000,1],
|
259
|
+
['slidedown', 14, 0,1,0,'horizontal',true,true,14,p3io,p3io,1000,1],
|
260
|
+
['slideright', 15, 0,1,0,'horizontal',true,true,15,p3io,p3io,1000,1],
|
261
|
+
['slideoverleft', 12, 7,1,0,'horizontal',true,true,12,p3io,p3io,1000,1],
|
262
|
+
['slideoverup', 13, 7,1,0,'horizontal',true,true,13,p3io,p3io,1000,1],
|
263
|
+
['slideoverdown', 14, 7,1,0,'horizontal',true,true,14,p3io,p3io,1000,1],
|
264
|
+
['slideoverright', 15, 7,1,0,'horizontal',true,true,15,p3io,p3io,1000,1],
|
265
|
+
['slideremoveleft', 12, 8,1,0,'horizontal',true,true,12,p3io,p3io,1000,1],
|
266
|
+
['slideremoveup', 13, 8,1,0,'horizontal',true,true,13,p3io,p3io,1000,1],
|
267
|
+
['slideremovedown', 14, 8,1,0,'horizontal',true,true,14,p3io,p3io,1000,1],
|
268
|
+
['slideremoveright', 15, 8,1,0,'horizontal',true,true,15,p3io,p3io,1000,1],
|
269
|
+
['papercut', 16, 0,0,600,'',null,null,16,p3io,p3io,1000,2],
|
270
|
+
['3dcurtain-horizontal', 17, 0,20,100,'vertical',false,true,17,p1io,p1io,500,7],
|
271
|
+
['3dcurtain-vertical', 18, 0,10,100,'horizontal',false,true,18,p1io,p1io,500,5],
|
272
|
+
['cubic', 19, 0,20,600,'horizontal',false,true,19,p3io,p3io,500,1],
|
273
|
+
['cube',19,0,20,600,'horizontal',false,true,20,p3io,p3io,500,1],
|
274
|
+
['flyin', 20, 0,4,600,'vertical',false,true,21,p3o,p3io,500,1],
|
275
|
+
['turnoff', 21, 0,1,500,'horizontal',false,true,22,p3io,p3io,500,1],
|
276
|
+
['incube', 22, 0,20,200,'horizontal',false,true,23,p2io,p2io,500,1],
|
277
|
+
['cubic-horizontal', 23, 0,20,500,'vertical',false,true,24,p2o,p2o,500,1],
|
278
|
+
['cube-horizontal', 23, 0,20,500,'vertical',false,true,25,p2o,p2o,500,1],
|
279
|
+
['incube-horizontal', 24, 0,20,500,'vertical',false,true,26,p2io,p2io,500,1],
|
280
|
+
['turnoff-vertical', 25, 0,1,200,'horizontal',false,true,27,p2io,p2io,500,1],
|
281
|
+
['fadefromright', 12, 1,1,0,'horizontal',true,true,28,p2io,p2io,1000,1],
|
282
|
+
['fadefromleft', 15, 1,1,0,'horizontal',true,true,29,p2io,p2io,1000,1],
|
283
|
+
['fadefromtop', 14, 1,1,0,'horizontal',true,true,30,p2io,p2io,1000,1],
|
284
|
+
['fadefrombottom', 13, 1,1,0,'horizontal',true,true,31,p2io,p2io,1000,1],
|
285
|
+
['fadetoleftfadefromright', 12, 2,1,0,'horizontal',true,true,32,p2io,p2io,1000,1],
|
286
|
+
['fadetorightfadefromleft', 15, 2,1,0,'horizontal',true,true,33,p2io,p2io,1000,1],
|
287
|
+
['fadetobottomfadefromtop', 14, 2,1,0,'horizontal',true,true,34,p2io,p2io,1000,1],
|
288
|
+
['fadetotopfadefrombottom', 13, 2,1,0,'horizontal',true,true,35,p2io,p2io,1000,1],
|
289
|
+
['parallaxtoright', 15, 3,1,0,'horizontal',true,true,36,p2io,p2i,1500,1],
|
290
|
+
['parallaxtoleft', 12, 3,1,0,'horizontal',true,true,37,p2io,p2i,1500,1],
|
291
|
+
['parallaxtotop', 14, 3,1,0,'horizontal',true,true,38,p2io,p1i,1500,1],
|
292
|
+
['parallaxtobottom', 13, 3,1,0,'horizontal',true,true,39,p2io,p1i,1500,1],
|
293
|
+
['scaledownfromright', 12, 4,1,0,'horizontal',true,true,40,p2io,p2i,1000,1],
|
294
|
+
['scaledownfromleft', 15, 4,1,0,'horizontal',true,true,41,p2io,p2i,1000,1],
|
295
|
+
['scaledownfromtop', 14, 4,1,0,'horizontal',true,true,42,p2io,p2i,1000,1],
|
296
|
+
['scaledownfrombottom', 13, 4,1,0,'horizontal',true,true,43,p2io,p2i,1000,1],
|
297
|
+
['zoomout', 13, 5,1,0,'horizontal',true,true,44,p2io,p2i,1000,1],
|
298
|
+
['zoomin', 13, 6,1,0,'horizontal',true,true,45,p2io,p2i,1000,1],
|
299
|
+
['slidingoverlayup', 27, 0,1,0,'horizontal',true,true,47,p1io,p1o,2000,1],
|
300
|
+
['slidingoverlaydown', 28, 0,1,0,'horizontal',true,true,48,p1io,p1o,2000,1],
|
301
|
+
['slidingoverlayright', 30, 0,1,0,'horizontal',true,true,49,p1io,p1o,2000,1],
|
302
|
+
['slidingoverlayleft', 29, 0,1,0,'horizontal',true,true,50,p1io,p1o,2000,1],
|
303
|
+
['parallaxcirclesup', 31, 0,1,0,'horizontal',true,true,51,p2io,p1i,1500,1],
|
304
|
+
['parallaxcirclesdown', 32, 0,1,0,'horizontal',true,true,52,p2io,p1i,1500,1],
|
305
|
+
['parallaxcirclesright', 33, 0,1,0,'horizontal',true,true,53,p2io,p1i,1500,1],
|
306
|
+
['parallaxcirclesleft', 34, 0,1,0,'horizontal',true,true,54,p2io,p1i,1500,1],
|
307
|
+
['notransition',26,0,1,0,'horizontal',true,null,46,p2io,p2i,1000,1],
|
308
|
+
['parallaxright', 15, 3,1,0,'horizontal',true,true,55,p2io,p2i,1500,1],
|
309
|
+
['parallaxleft', 12, 3,1,0,'horizontal',true,true,56,p2io,p2i,1500,1],
|
310
|
+
['parallaxup', 14, 3,1,0,'horizontal',true,true,57,p2io,p1i,1500,1],
|
311
|
+
['parallaxdown', 13, 3,1,0,'horizontal',true,true,58,p2io,p1i,1500,1],
|
312
|
+
['grayscale', 11, 5, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
313
|
+
['grayscalecross', 11, 6, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
314
|
+
['brightness', 11, 7, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
315
|
+
['brightnesscross', 11, 8, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
316
|
+
['blurlight', 11, 9, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
317
|
+
['blurlightcross', 11, 10, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
318
|
+
['blurstrong', 11, 9, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1],
|
319
|
+
['blurstrongcross', 11, 10, 1 ,300,'horizontal',true,null,11,p2io,p2io,1000,1]
|
320
|
+
];
|
321
|
+
|
322
|
+
opt.duringslidechange = true;
|
323
|
+
|
324
|
+
// INTERNAL TEST FOR TRANSITIONS
|
325
|
+
opt.testanims = false;
|
326
|
+
if (opt.testanims==true) {
|
327
|
+
opt.nexttesttransform = opt.nexttesttransform === undefined ? 34 : opt.nexttesttransform + 1;
|
328
|
+
opt.nexttesttransform = opt.nexttesttransform>70 ? 0 : opt.nexttesttransform;
|
329
|
+
comingtransition = transitionsArray[opt.nexttesttransform][0];
|
330
|
+
console.log(comingtransition+" "+opt.nexttesttransform+" "+transitionsArray[opt.nexttesttransform][1]+" "+transitionsArray[opt.nexttesttransform][2]);
|
331
|
+
}
|
332
|
+
|
333
|
+
|
334
|
+
// CHECK AUTO DIRECTION FOR TRANSITION ARTS
|
335
|
+
jQuery.each(["parallaxcircles","slidingoverlay","slide","slideover","slideremove","parallax","parralaxto"],function(i,b) {
|
336
|
+
|
337
|
+
if (comingtransition==b+"horizontal") comingtransition = slidedirection!=1 ? b+"left" : b+"right";
|
338
|
+
if (comingtransition==b+"vertical") comingtransition = slidedirection!=1 ? b+"up" : b+"down";
|
339
|
+
});
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
// RANDOM TRANSITIONS
|
344
|
+
if (comingtransition == "random") {
|
345
|
+
comingtransition = Math.round(Math.random()*transitionsArray.length-1);
|
346
|
+
if (comingtransition>transitionsArray.length-1) comingtransition=transitionsArray.length-1;
|
347
|
+
}
|
348
|
+
|
349
|
+
// RANDOM FLAT TRANSITIONS
|
350
|
+
if (comingtransition == "random-static") {
|
351
|
+
comingtransition = Math.round(Math.random()*flatTransitions.length-1);
|
352
|
+
if (comingtransition>flatTransitions.length-1) comingtransition=flatTransitions.length-1;
|
353
|
+
comingtransition = flatTransitions[comingtransition];
|
354
|
+
}
|
355
|
+
|
356
|
+
// RANDOM PREMIUM TRANSITIONS
|
357
|
+
if (comingtransition == "random-premium") {
|
358
|
+
comingtransition = Math.round(Math.random()*premiumTransitions.length-1);
|
359
|
+
if (comingtransition>premiumTransitions.length-1) comingtransition=premiumTransitions.length-1;
|
360
|
+
comingtransition = premiumTransitions[comingtransition];
|
361
|
+
}
|
362
|
+
|
363
|
+
//joomla only change: avoid problematic transitions that don't compatible with mootools
|
364
|
+
var problematicTransitions = [12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];
|
365
|
+
if(opt.isJoomla == true && window.MooTools != undefined && problematicTransitions.indexOf(comingtransition) != -1){
|
366
|
+
|
367
|
+
var newTransIndex = Math.round(Math.random() * (premiumTransitions.length-2) ) + 1;
|
368
|
+
|
369
|
+
//some limits fix
|
370
|
+
if (newTransIndex > premiumTransitions.length-1)
|
371
|
+
newTransIndex = premiumTransitions.length-1;
|
372
|
+
|
373
|
+
if(newTransIndex == 0)
|
374
|
+
newTransIndex = 1;
|
375
|
+
|
376
|
+
comingtransition = premiumTransitions[newTransIndex];
|
377
|
+
}
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
function findTransition() {
|
382
|
+
// FIND THE RIGHT TRANSITION PARAMETERS HERE
|
383
|
+
jQuery.each(transitionsArray,function(inde,trans) {
|
384
|
+
if (trans[0] == comingtransition || trans[8] == comingtransition) {
|
385
|
+
nexttrans = trans[1];
|
386
|
+
specials = trans[2];
|
387
|
+
STAindex = indexcounter;
|
388
|
+
}
|
389
|
+
indexcounter = indexcounter+1;
|
390
|
+
})
|
391
|
+
}
|
392
|
+
|
393
|
+
findTransition();
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
if (nexttrans>30) nexttrans = 30;
|
398
|
+
if (nexttrans<0) nexttrans = 0;
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
var obj = new Object();
|
403
|
+
obj.nexttrans = nexttrans;
|
404
|
+
obj.STA = transitionsArray[STAindex]; // PREPARED DEFAULT SETTINGS PER TRANSITION
|
405
|
+
obj.specials = specials;
|
406
|
+
return obj;
|
407
|
+
|
408
|
+
|
409
|
+
}
|
410
|
+
|
411
|
+
function moveCircles(cont,ms,_nt,dir,ei) {
|
412
|
+
var slot = cont.find('.slot'),
|
413
|
+
pieces = 6,
|
414
|
+
sizearray = [2,1.2,0.9,0.7,0.55,0.42],
|
415
|
+
sw = cont.width(),
|
416
|
+
sh = cont.height(),
|
417
|
+
di = sh>sw ? (sw*2) / pieces : (sh*2) / pieces;
|
418
|
+
slot.wrap('<div class="slot-circle-wrapper" style="overflow:hidden;position:absolute;border:1px solid #fff"></div>');
|
419
|
+
|
420
|
+
for (var i=0; i<pieces;i++) slot.parent().clone(false).appendTo(nextsh);
|
421
|
+
|
422
|
+
cont.find('.slot-circle-wrapper').each(function(i) {
|
423
|
+
if (i<pieces) {
|
424
|
+
var t = jQuery(this),
|
425
|
+
s = t.find('.slot'),
|
426
|
+
|
427
|
+
nh = sw>sh ? sizearray[i]*sw : sizearray[i]*sh,
|
428
|
+
nw = nh,
|
429
|
+
|
430
|
+
nl = 0 + (nw/2 - sw/2),
|
431
|
+
nt = 0 + (nh/2 - sh/2),
|
432
|
+
br = i!=0 ? "50%" : "0",
|
433
|
+
|
434
|
+
ftop = _nt == 31 ? sh/2 - nh/2 : _nt == 32 ? sh/2 - nh/2 : sh/2 - nh/2,
|
435
|
+
fleft = _nt == 33 ? sw/2 - nw/2 : _nt == 34 ? sw - nw : sw/2 - nw/2,
|
436
|
+
fa = {scale:1,transformOrigo:"50% 50%",width:nw+"px",height:nh+"px",top:ftop+"px",left:fleft+"px",borderRadius:br},
|
437
|
+
ta = {scale:1,top:sh/2 - nh/2,left:sw/2 - nw/2,ease:ei},
|
438
|
+
|
439
|
+
fftop = _nt == 31 ? nt : _nt == 32 ? nt : nt,
|
440
|
+
ffleft = _nt == 33 ? nl : _nt == 34 ? nl+(sw/2) : nl,
|
441
|
+
fb = {width:sw,height:sh,autoAlpha:1,top:fftop+"px",position:"absolute",left:ffleft+"px"},
|
442
|
+
tb = {top:nt+"px",left:nl+"px",ease:ei},
|
443
|
+
|
444
|
+
speed = ms,
|
445
|
+
delay = 0;
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
mtl.add(punchgs.TweenLite.fromTo(t,speed,fa,ta),delay);
|
451
|
+
mtl.add(punchgs.TweenLite.fromTo(s,speed,fb,tb),delay);
|
452
|
+
mtl.add(punchgs.TweenLite.fromTo(t,0.001,{autoAlpha:0},{autoAlpha:1}),0);
|
453
|
+
}
|
454
|
+
})
|
455
|
+
}
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
/*************************************
|
460
|
+
- ANIMATE THE SLIDE -
|
461
|
+
*************************************/
|
462
|
+
|
463
|
+
var gSlideTransA = function(a,i) {
|
464
|
+
if (i==undefined || jQuery.isNumeric(a)) return a;
|
465
|
+
if (a==undefined) return a;
|
466
|
+
return a.split(",")[i];
|
467
|
+
}
|
468
|
+
|
469
|
+
var animateSlideIntern = function(nexttrans, comingtransition, container, nextli, actli, nextsh, actsh, mtl) {
|
470
|
+
|
471
|
+
// GET THE TRANSITION
|
472
|
+
|
473
|
+
var opt = container[0].opt,
|
474
|
+
ai = actli.index(),
|
475
|
+
ni = nextli.index(),
|
476
|
+
slidedirection = ni<ai ? 1 : 0;
|
477
|
+
|
478
|
+
if (opt.sc_indicator=="arrow") slidedirection = opt.sc_indicator_dir;
|
479
|
+
|
480
|
+
var stp = getSliderTransitionParameters(container,comingtransition,nextsh,slidedirection),
|
481
|
+
STA = stp.STA,
|
482
|
+
specials = stp.specials,
|
483
|
+
nexttrans = stp.nexttrans;
|
484
|
+
|
485
|
+
//KEN BURNS ONLY WITH FADE TRANSITION
|
486
|
+
if (nextsh.data('kenburns')=="on") //|| actsh.data('kenburns')=="on")
|
487
|
+
nexttrans = 11;
|
488
|
+
|
489
|
+
|
490
|
+
// DEFINE THE MASTERSPEED FOR THE SLIDE //
|
491
|
+
var ctid = nextli.data('nexttransid') || 0,
|
492
|
+
masterspeed=gSlideTransA(nextli.data('masterspeed'),ctid);
|
493
|
+
|
494
|
+
masterspeed = masterspeed==="default" ? STA[11] : masterspeed==="random" ? Math.round(Math.random()*1000+300) : masterspeed!=undefined ? parseInt(masterspeed,0) : STA[11];
|
495
|
+
masterspeed = masterspeed > opt.delay ? opt.delay : masterspeed;
|
496
|
+
|
497
|
+
// ADJUST MASTERSPEED
|
498
|
+
masterspeed = masterspeed + STA[4];
|
499
|
+
|
500
|
+
|
501
|
+
///////////////////////
|
502
|
+
// ADJUST SLOTS //
|
503
|
+
///////////////////////
|
504
|
+
opt.slots = gSlideTransA(nextli.data('slotamount'),ctid);
|
505
|
+
opt.slots = opt.slots==undefined || opt.slots=="default" ? STA[12] : opt.slots=="random" ? Math.round(Math.random()*12+4) : opt.slots;
|
506
|
+
opt.slots = opt.slots < 1 ? comingtransition=="boxslide" ? Math.round(Math.random()*6+3) : comingtransition=="flyin" ? Math.round(Math.random()*4+1) : opt.slots : opt.slots;
|
507
|
+
opt.slots = (nexttrans==4 || nexttrans==5 || nexttrans==6) && opt.slots<3 ? 3 : opt.slots;
|
508
|
+
opt.slots = STA[3] != 0 ? Math.min(opt.slots,STA[3]) : opt.slots;
|
509
|
+
opt.slots = nexttrans==9 ? opt.width/opt.slots : nexttrans==10 ? opt.height/opt.slots : opt.slots;
|
510
|
+
|
511
|
+
|
512
|
+
/////////////////////////////////////////////
|
513
|
+
// SET THE ACTUAL AMOUNT OF SLIDES !! //
|
514
|
+
// SET A RANDOM AMOUNT OF SLOTS //
|
515
|
+
///////////////////////////////////////////
|
516
|
+
opt.rotate = gSlideTransA(nextli.data('rotate'),ctid);
|
517
|
+
opt.rotate = opt.rotate==undefined || opt.rotate=="default" ? 0 : opt.rotate==999 || opt.rotate=="random" ? Math.round(Math.random()*360) : opt.rotate;
|
518
|
+
opt.rotate = (opt.ie || opt.ie9) ? 0 : opt.rotate;
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
// prepareOneSlide
|
525
|
+
if (nexttrans!=11) {
|
526
|
+
if (STA[7] !=null) prepareOneSlide(actsh,opt,STA[7],STA[5]);
|
527
|
+
if (STA[6] !=null) prepareOneSlide(nextsh,opt,STA[6],STA[5]);
|
528
|
+
}
|
529
|
+
|
530
|
+
// DEFAULT SETTINGS FOR NEXT AND ACT SH
|
531
|
+
mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultvid'),{y:0,x:0,top:0,left:0,scale:1}),0);
|
532
|
+
mtl.add(punchgs.TweenLite.set(actsh.find('.defaultvid'),{y:0,x:0,top:0,left:0,scale:1}),0);
|
533
|
+
mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultvid'),{y:"+0%",x:"+0%"}),0);
|
534
|
+
mtl.add(punchgs.TweenLite.set(actsh.find('.defaultvid'),{y:"+0%",x:"+0%"}),0);
|
535
|
+
mtl.add(punchgs.TweenLite.set(nextsh,{autoAlpha:1,y:"+0%",x:"+0%"}),0);
|
536
|
+
mtl.add(punchgs.TweenLite.set(actsh,{autoAlpha:1,y:"+0%",x:"+0%"}),0);
|
537
|
+
mtl.add(punchgs.TweenLite.set(nextsh.parent(),{backgroundColor:"transparent"}),0);
|
538
|
+
mtl.add(punchgs.TweenLite.set(actsh.parent(),{backgroundColor:"transparent"}),0);
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
var ei= gSlideTransA(nextli.data('easein'),ctid),
|
543
|
+
eo =gSlideTransA(nextli.data('easeout'),ctid);
|
544
|
+
|
545
|
+
ei = ei==="default" ? STA[9] || punchgs.Power2.easeInOut : ei || STA[9] || punchgs.Power2.easeInOut;
|
546
|
+
eo = eo==="default" ? STA[10] || punchgs.Power2.easeInOut : eo || STA[10] || punchgs.Power2.easeInOut;
|
547
|
+
|
548
|
+
|
549
|
+
/////////////////////////////////////
|
550
|
+
// THE SLOTSLIDE - TRANSITION I. //
|
551
|
+
////////////////////////////////////
|
552
|
+
if (nexttrans==0) { // BOXSLIDE
|
553
|
+
|
554
|
+
|
555
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
556
|
+
var maxz = Math.ceil(opt.height/opt.sloth);
|
557
|
+
var curz = 0;
|
558
|
+
nextsh.find('.slotslide').each(function(j) {
|
559
|
+
var ss=jQuery(this);
|
560
|
+
curz=curz+1;
|
561
|
+
if (curz==maxz) curz=0;
|
562
|
+
|
563
|
+
mtl.add(punchgs.TweenLite.from(ss,(masterspeed)/600,
|
564
|
+
{opacity:0,top:(0-opt.sloth),left:(0-opt.slotw),rotation:opt.rotate,force3D:"auto",ease:ei}),((j*15) + ((curz)*30))/1500);
|
565
|
+
});
|
566
|
+
}
|
567
|
+
/////////////////////////////////////
|
568
|
+
// THE SLOTSLIDE - TRANSITION I. //
|
569
|
+
////////////////////////////////////
|
570
|
+
if (nexttrans==1) {
|
571
|
+
|
572
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
573
|
+
var maxtime,
|
574
|
+
maxj = 0;
|
575
|
+
|
576
|
+
nextsh.find('.slotslide').each(function(j) {
|
577
|
+
var ss=jQuery(this),
|
578
|
+
rand=Math.random()*masterspeed+300,
|
579
|
+
rand2=Math.random()*500+200;
|
580
|
+
if (rand+rand2>maxtime) {
|
581
|
+
maxtime = rand2+rand2;
|
582
|
+
maxj = j;
|
583
|
+
}
|
584
|
+
mtl.add(punchgs.TweenLite.from(ss,rand/1000,
|
585
|
+
{autoAlpha:0, force3D:"auto",rotation:opt.rotate,ease:ei}),rand2/1000);
|
586
|
+
});
|
587
|
+
}
|
588
|
+
|
589
|
+
|
590
|
+
/////////////////////////////////////
|
591
|
+
// THE SLOTSLIDE - TRANSITION I. //
|
592
|
+
////////////////////////////////////
|
593
|
+
if (nexttrans==2) {
|
594
|
+
|
595
|
+
var subtl = new punchgs.TimelineLite();
|
596
|
+
// ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT
|
597
|
+
actsh.find('.slotslide').each(function() {
|
598
|
+
var ss=jQuery(this);
|
599
|
+
subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{left:opt.slotw,ease:ei, force3D:"auto",rotation:(0-opt.rotate)}),0);
|
600
|
+
mtl.add(subtl,0);
|
601
|
+
});
|
602
|
+
|
603
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
604
|
+
nextsh.find('.slotslide').each(function() {
|
605
|
+
var ss=jQuery(this);
|
606
|
+
subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{left:0-opt.slotw,ease:ei, force3D:"auto",rotation:opt.rotate}),0);
|
607
|
+
mtl.add(subtl,0);
|
608
|
+
});
|
609
|
+
}
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
/////////////////////////////////////
|
614
|
+
// THE SLOTSLIDE - TRANSITION I. //
|
615
|
+
////////////////////////////////////
|
616
|
+
if (nexttrans==3) {
|
617
|
+
var subtl = new punchgs.TimelineLite();
|
618
|
+
|
619
|
+
// ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT
|
620
|
+
actsh.find('.slotslide').each(function() {
|
621
|
+
var ss=jQuery(this);
|
622
|
+
subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{top:opt.sloth,ease:ei,rotation:opt.rotate,force3D:"auto",transformPerspective:600}),0);
|
623
|
+
mtl.add(subtl,0);
|
624
|
+
|
625
|
+
});
|
626
|
+
|
627
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
628
|
+
nextsh.find('.slotslide').each(function() {
|
629
|
+
var ss=jQuery(this);
|
630
|
+
subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{top:0-opt.sloth,rotation:opt.rotate,ease:eo,force3D:"auto",transformPerspective:600}),0);
|
631
|
+
mtl.add(subtl,0);
|
632
|
+
});
|
633
|
+
}
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
/////////////////////////////////////
|
638
|
+
// THE SLOTSLIDE - TRANSITION I. //
|
639
|
+
////////////////////////////////////
|
640
|
+
if (nexttrans==4 || nexttrans==5) {
|
641
|
+
|
642
|
+
setTimeout(function() {
|
643
|
+
actsh.find('.defaultimg').css({opacity:0});
|
644
|
+
},100);
|
645
|
+
|
646
|
+
|
647
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
648
|
+
var cspeed = (masterspeed)/1000,
|
649
|
+
ticker = cspeed,
|
650
|
+
subtl = new punchgs.TimelineLite();
|
651
|
+
|
652
|
+
actsh.find('.slotslide').each(function(i) {
|
653
|
+
var ss=jQuery(this);
|
654
|
+
var del = (i*cspeed)/opt.slots;
|
655
|
+
if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5;
|
656
|
+
subtl.add(punchgs.TweenLite.to(ss,cspeed*3,{transformPerspective:600,force3D:"auto",top:0+opt.height,opacity:0.5,rotation:opt.rotate,ease:ei,delay:del}),0);
|
657
|
+
mtl.add(subtl,0);
|
658
|
+
});
|
659
|
+
|
660
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
661
|
+
nextsh.find('.slotslide').each(function(i) {
|
662
|
+
var ss=jQuery(this);
|
663
|
+
var del = (i*cspeed)/opt.slots;
|
664
|
+
if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5;
|
665
|
+
subtl.add(punchgs.TweenLite.from(ss,cspeed*3,
|
666
|
+
{top:(0-opt.height),opacity:0.5,rotation:opt.rotate,force3D:"auto",ease:punchgs.eo,delay:del}),0);
|
667
|
+
mtl.add(subtl,0);
|
668
|
+
|
669
|
+
});
|
670
|
+
|
671
|
+
|
672
|
+
}
|
673
|
+
|
674
|
+
/////////////////////////////////////
|
675
|
+
// THE SLOTSLIDE - TRANSITION I. //
|
676
|
+
////////////////////////////////////
|
677
|
+
if (nexttrans==6) {
|
678
|
+
|
679
|
+
|
680
|
+
if (opt.slots<2) opt.slots=2;
|
681
|
+
if (opt.slots % 2) opt.slots = opt.slots+1;
|
682
|
+
|
683
|
+
var subtl = new punchgs.TimelineLite();
|
684
|
+
|
685
|
+
//SET DEFAULT IMG UNVISIBLE
|
686
|
+
setTimeout(function() {
|
687
|
+
actsh.find('.defaultimg').css({opacity:0});
|
688
|
+
},100);
|
689
|
+
|
690
|
+
actsh.find('.slotslide').each(function(i) {
|
691
|
+
var ss=jQuery(this);
|
692
|
+
if (i+1<opt.slots/2)
|
693
|
+
var tempo = (i+2)*90;
|
694
|
+
else
|
695
|
+
var tempo = (2+opt.slots-i)*90;
|
696
|
+
|
697
|
+
subtl.add(punchgs.TweenLite.to(ss,(masterspeed+tempo)/1000,{top:0+opt.height,opacity:1,force3D:"auto",rotation:opt.rotate,ease:ei}),0);
|
698
|
+
mtl.add(subtl,0);
|
699
|
+
});
|
700
|
+
|
701
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
702
|
+
nextsh.find('.slotslide').each(function(i) {
|
703
|
+
var ss=jQuery(this);
|
704
|
+
|
705
|
+
if (i+1<opt.slots/2)
|
706
|
+
var tempo = (i+2)*90;
|
707
|
+
else
|
708
|
+
var tempo = (2+opt.slots-i)*90;
|
709
|
+
|
710
|
+
subtl.add(punchgs.TweenLite.from(ss,(masterspeed+tempo)/1000,
|
711
|
+
{top:(0-opt.height),opacity:1,force3D:"auto",rotation:opt.rotate,ease:eo}),0);
|
712
|
+
mtl.add(subtl,0);
|
713
|
+
});
|
714
|
+
}
|
715
|
+
|
716
|
+
|
717
|
+
////////////////////////////////////
|
718
|
+
// THE SLOTSZOOM - TRANSITION II. //
|
719
|
+
////////////////////////////////////
|
720
|
+
if (nexttrans==7) {
|
721
|
+
|
722
|
+
masterspeed = masterspeed *2;
|
723
|
+
if (masterspeed>opt.delay) masterspeed=opt.delay;
|
724
|
+
var subtl = new punchgs.TimelineLite();
|
725
|
+
|
726
|
+
//SET DEFAULT IMG UNVISIBLE
|
727
|
+
setTimeout(function() {
|
728
|
+
actsh.find('.defaultimg').css({opacity:0});
|
729
|
+
},100);
|
730
|
+
|
731
|
+
// ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT
|
732
|
+
actsh.find('.slotslide').each(function() {
|
733
|
+
var ss=jQuery(this).find('div');
|
734
|
+
subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{
|
735
|
+
left:(0-opt.slotw/2)+'px',
|
736
|
+
top:(0-opt.height/2)+'px',
|
737
|
+
width:(opt.slotw*2)+"px",
|
738
|
+
height:(opt.height*2)+"px",
|
739
|
+
opacity:0,
|
740
|
+
rotation:opt.rotate,
|
741
|
+
force3D:"auto",
|
742
|
+
ease:ei}),0);
|
743
|
+
mtl.add(subtl,0);
|
744
|
+
|
745
|
+
});
|
746
|
+
|
747
|
+
//////////////////////////////////////////////////////////////
|
748
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT //
|
749
|
+
///////////////////////////////////////////////////////////////
|
750
|
+
nextsh.find('.slotslide').each(function(i) {
|
751
|
+
var ss=jQuery(this).find('div');
|
752
|
+
|
753
|
+
subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
754
|
+
{left:0,top:0,opacity:0,transformPerspective:600},
|
755
|
+
{left:(0-i*opt.slotw)+'px',
|
756
|
+
ease:eo,
|
757
|
+
force3D:"auto",
|
758
|
+
top:(0)+'px',
|
759
|
+
width:opt.width,
|
760
|
+
height:opt.height,
|
761
|
+
opacity:1,rotation:0,
|
762
|
+
delay:0.1}),0);
|
763
|
+
mtl.add(subtl,0);
|
764
|
+
});
|
765
|
+
}
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
////////////////////////////////////
|
771
|
+
// THE SLOTSZOOM - TRANSITION II. //
|
772
|
+
////////////////////////////////////
|
773
|
+
if (nexttrans==8) {
|
774
|
+
|
775
|
+
masterspeed = masterspeed * 3;
|
776
|
+
if (masterspeed>opt.delay) masterspeed=opt.delay;
|
777
|
+
var subtl = new punchgs.TimelineLite();
|
778
|
+
|
779
|
+
|
780
|
+
|
781
|
+
// ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT
|
782
|
+
actsh.find('.slotslide').each(function() {
|
783
|
+
var ss=jQuery(this).find('div');
|
784
|
+
subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,
|
785
|
+
{left:(0-opt.width/2)+'px',
|
786
|
+
top:(0-opt.sloth/2)+'px',
|
787
|
+
width:(opt.width*2)+"px",
|
788
|
+
height:(opt.sloth*2)+"px",
|
789
|
+
force3D:"auto",
|
790
|
+
ease:ei,
|
791
|
+
opacity:0,rotation:opt.rotate}),0);
|
792
|
+
mtl.add(subtl,0);
|
793
|
+
|
794
|
+
});
|
795
|
+
|
796
|
+
|
797
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT //
|
798
|
+
///////////////////////////////////////////////////////////////
|
799
|
+
nextsh.find('.slotslide').each(function(i) {
|
800
|
+
var ss=jQuery(this).find('div');
|
801
|
+
|
802
|
+
subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
803
|
+
{left:0, top:0,opacity:0,force3D:"auto"},
|
804
|
+
{'left':(0)+'px',
|
805
|
+
'top':(0-i*opt.sloth)+'px',
|
806
|
+
'width':(nextsh.find('.defaultimg').data('neww'))+"px",
|
807
|
+
'height':(nextsh.find('.defaultimg').data('newh'))+"px",
|
808
|
+
opacity:1,
|
809
|
+
ease:eo,rotation:0,
|
810
|
+
}),0);
|
811
|
+
mtl.add(subtl,0);
|
812
|
+
});
|
813
|
+
}
|
814
|
+
|
815
|
+
|
816
|
+
////////////////////////////////////////
|
817
|
+
// THE SLOTSFADE - TRANSITION III. //
|
818
|
+
//////////////////////////////////////
|
819
|
+
if (nexttrans==9 || nexttrans==10) {
|
820
|
+
var ssamount=0;
|
821
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
822
|
+
nextsh.find('.slotslide').each(function(i) {
|
823
|
+
var ss=jQuery(this);
|
824
|
+
ssamount++;
|
825
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/2000,{autoAlpha:0,force3D:"auto",transformPerspective:600},
|
826
|
+
{autoAlpha:1,ease:ei,delay:(i*opt.slots/100)/2000}),0);
|
827
|
+
|
828
|
+
});
|
829
|
+
}
|
830
|
+
|
831
|
+
|
832
|
+
//////////////////////
|
833
|
+
// SLIDING OVERLAYS //
|
834
|
+
//////////////////////
|
835
|
+
|
836
|
+
if (nexttrans==27||nexttrans==28||nexttrans==29||nexttrans==30) {
|
837
|
+
|
838
|
+
var slot = nextsh.find('.slot'),
|
839
|
+
nd = nexttrans==27 || nexttrans==28 ? 1 : 2,
|
840
|
+
mhp = nexttrans==27 || nexttrans==29 ? "-100%" : "+100%",
|
841
|
+
php = nexttrans==27 || nexttrans==29 ? "+100%" : "-100%",
|
842
|
+
mep = nexttrans==27 || nexttrans==29 ? "-80%" : "80%",
|
843
|
+
pep = nexttrans==27 || nexttrans==29 ? "+80%" : "-80%",
|
844
|
+
ptp = nexttrans==27 || nexttrans==29 ? "+10%" : "-10%",
|
845
|
+
|
846
|
+
fa = {overwrite:"all"},
|
847
|
+
ta = {autoAlpha:0,zIndex:1,force3D:"auto",ease:ei},
|
848
|
+
|
849
|
+
fb = {position:"inherit",autoAlpha:0,overwrite:"all",zIndex:1},
|
850
|
+
tb = {autoAlpha:1,force3D:"auto",ease:eo},
|
851
|
+
|
852
|
+
fc = {overwrite:"all",zIndex:2,opacity:1,autoAlpha:1},
|
853
|
+
tc = {autoAlpha:1,force3D:"auto",overwrite:"all",ease:ei},
|
854
|
+
|
855
|
+
fd = {overwrite:"all",zIndex:2,autoAlpha:1},
|
856
|
+
td = {autoAlpha:1,force3D:"auto",ease:ei},
|
857
|
+
at = nd==1 ? "y" : "x";
|
858
|
+
|
859
|
+
fa[at] = "0px";
|
860
|
+
ta[at] = mhp;
|
861
|
+
fb[at] = ptp;
|
862
|
+
tb[at] = "0%";
|
863
|
+
fc[at] = php;
|
864
|
+
tc[at] = mhp;
|
865
|
+
fd[at] = mep;
|
866
|
+
td[at] = pep;
|
867
|
+
|
868
|
+
|
869
|
+
slot.append('<span style="background-color:rgba(0,0,0,0.6);width:100%;height:100%;position:absolute;top:0px;left:0px;display:block;z-index:2"></span>');
|
870
|
+
|
871
|
+
mtl.add(punchgs.TweenLite.fromTo(actsh,masterspeed/1000,fa,ta),0);
|
872
|
+
mtl.add(punchgs.TweenLite.fromTo(nextsh.find('.defaultimg'),masterspeed/2000,fb,tb),masterspeed/2000);
|
873
|
+
mtl.add(punchgs.TweenLite.fromTo(slot,masterspeed/1000,fc,tc),0);
|
874
|
+
mtl.add(punchgs.TweenLite.fromTo(slot.find('.slotslide div'),masterspeed/1000,fd,td),0);
|
875
|
+
}
|
876
|
+
|
877
|
+
|
878
|
+
////////////////////////////////
|
879
|
+
// PARALLAX CIRCLE TRANSITION //
|
880
|
+
////////////////////////////////
|
881
|
+
|
882
|
+
//nexttrans = 34;
|
883
|
+
if (nexttrans==31||nexttrans==32||nexttrans==33||nexttrans==34) { // up , down, right ,left
|
884
|
+
|
885
|
+
masterspeed = 6000;
|
886
|
+
ei = punchgs.Power3.easeInOut;
|
887
|
+
|
888
|
+
var ms = masterspeed / 1000;
|
889
|
+
mas = ms - ms/5,
|
890
|
+
_nt = nexttrans,
|
891
|
+
fy = _nt == 31 ? "+100%" : _nt == 32 ? "-100%" : "0%",
|
892
|
+
fx = _nt == 33 ? "+100%" : _nt == 34 ? "-100%" : "0%",
|
893
|
+
ty = _nt == 31 ? "-100%" : _nt == 32 ? "+100%" : "0%",
|
894
|
+
tx = _nt == 33 ? "-100%" : _nt == 34 ? "+100%" : "0%";
|
895
|
+
|
896
|
+
|
897
|
+
mtl.add(punchgs.TweenLite.fromTo(actsh,ms-(ms*0.2),{y:0,x:0},{y:ty,x:tx,ease:eo}),ms*0.2);
|
898
|
+
mtl.add(punchgs.TweenLite.fromTo(nextsh,ms,{y:fy, x:fx},{y:"0%",x:"0%",ease:ei}),0);
|
899
|
+
//mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:0}),0);border:1px solid #fff
|
900
|
+
|
901
|
+
|
902
|
+
|
903
|
+
nextsh.find('.slot').remove();
|
904
|
+
nextsh.find('.defaultimg').clone().appendTo(nextsh).addClass("slot");
|
905
|
+
moveCircles(nextsh, ms,_nt,"in",ei);
|
906
|
+
// moveCircles(actsh, mas,_nt,"out",eo);
|
907
|
+
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
|
914
|
+
}
|
915
|
+
|
916
|
+
/////////////////////////////
|
917
|
+
// SIMPLE FADE ANIMATIONS //
|
918
|
+
////////////////////////////
|
919
|
+
if (nexttrans==11) {
|
920
|
+
|
921
|
+
if (specials>12) specials = 0;
|
922
|
+
|
923
|
+
var ssamount=0,
|
924
|
+
bgcol = specials == 2 ? "#000000" : specials == 3 ? "#ffffff" : "transparent";
|
925
|
+
|
926
|
+
switch (specials) {
|
927
|
+
case 0: //FADE
|
928
|
+
mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0);
|
929
|
+
break;
|
930
|
+
|
931
|
+
case 1: // CROSSFADE
|
932
|
+
mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0);
|
933
|
+
mtl.add(punchgs.TweenLite.fromTo(actsh,masterspeed/1000,{autoAlpha:1},{autoAlpha:0,force3D:"auto",ease:ei}),0);
|
934
|
+
break;
|
935
|
+
|
936
|
+
case 2:
|
937
|
+
case 3:
|
938
|
+
case 4:
|
939
|
+
mtl.add(punchgs.TweenLite.set(actsh.parent(),{backgroundColor:bgcol,force3D:"auto"}),0);
|
940
|
+
mtl.add(punchgs.TweenLite.set(nextsh.parent(),{backgroundColor:"transparent",force3D:"auto"}),0);
|
941
|
+
mtl.add(punchgs.TweenLite.to(actsh,masterspeed/2000,{autoAlpha:0,force3D:"auto",ease:ei}),0);
|
942
|
+
mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/2000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),masterspeed/2000);
|
943
|
+
break;
|
944
|
+
case 5: // GRAYSCALE
|
945
|
+
case 6: // GRAYSCALECROSS
|
946
|
+
case 7: // BRIGHTNESS
|
947
|
+
case 8: // BRIGHTNESSCROSS
|
948
|
+
case 9: // BLUR LIGHT
|
949
|
+
case 10: // BLUR LIGHT CROSS
|
950
|
+
case 11: // BLUR STRONG
|
951
|
+
case 12: // BLUR STRONG CROSS
|
952
|
+
|
953
|
+
|
954
|
+
var _blur = jQuery.inArray(specials,[9,10])>=0 ? 5 : jQuery.inArray(specials,[11,12])>=0 ? 10 : 0,
|
955
|
+
_gray = jQuery.inArray(specials,[5,6,7,8])>=0 ? 100 : 0,
|
956
|
+
_bright = jQuery.inArray(specials,[7,8])>=0 ? 300 : 0,
|
957
|
+
__ff = "blur("+_blur+"px) grayscale("+_gray+"%) brightness("+_bright+"%)",
|
958
|
+
__ft = "blur(0px) grayscale(0%) brightness(100%)";
|
959
|
+
|
960
|
+
mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0,filter:__ff, "-webkit-filter":__ff},{autoAlpha:1,filter:__ft, "-webkit-filter":__ft,force3D:"auto",ease:ei}),0);
|
961
|
+
if (jQuery.inArray(specials,[6,8,10])>=0)
|
962
|
+
mtl.add(punchgs.TweenLite.fromTo(actsh,masterspeed/1000,{autoAlpha:1,filter:__ft, "-webkit-filter":__ft},{autoAlpha:0,force3D:"auto",ease:ei,filter:__ff, "-webkit-filter":__ff}),0);
|
963
|
+
|
964
|
+
break;
|
965
|
+
|
966
|
+
|
967
|
+
}
|
968
|
+
|
969
|
+
mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0);
|
970
|
+
mtl.add(punchgs.TweenLite.set(actsh.find('defaultimg'),{autoAlpha:1}),0);
|
971
|
+
|
972
|
+
|
973
|
+
}
|
974
|
+
|
975
|
+
if (nexttrans==26) {
|
976
|
+
var ssamount=0;
|
977
|
+
masterspeed=0;
|
978
|
+
mtl.add(punchgs.TweenLite.fromTo(nextsh,masterspeed/1000,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:ei}),0);
|
979
|
+
mtl.add(punchgs.TweenLite.to(actsh,masterspeed/1000,{autoAlpha:0,force3D:"auto",ease:ei}),0);
|
980
|
+
mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0);
|
981
|
+
mtl.add(punchgs.TweenLite.set(actsh.find('defaultimg'),{autoAlpha:1}),0);
|
982
|
+
}
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
if (nexttrans==12 || nexttrans==13 || nexttrans==14 || nexttrans==15) {
|
987
|
+
masterspeed = masterspeed;
|
988
|
+
if (masterspeed>opt.delay) masterspeed=opt.delay;
|
989
|
+
//masterspeed = 1000;
|
990
|
+
|
991
|
+
setTimeout(function() {
|
992
|
+
punchgs.TweenLite.set(actsh.find('.defaultimg'),{autoAlpha:0});
|
993
|
+
|
994
|
+
},100);
|
995
|
+
|
996
|
+
var oow = opt.width,
|
997
|
+
ooh = opt.height,
|
998
|
+
ssn=nextsh.find('.slotslide, .defaultvid'),
|
999
|
+
twx = 0,
|
1000
|
+
twy = 0,
|
1001
|
+
op = 1,
|
1002
|
+
scal = 1,
|
1003
|
+
fromscale = 1,
|
1004
|
+
speedy = masterspeed/1000,
|
1005
|
+
speedy2 = speedy;
|
1006
|
+
|
1007
|
+
|
1008
|
+
if (opt.sliderLayout=="fullwidth" || opt.sliderLayout=="fullscreen") {
|
1009
|
+
oow=ssn.width();
|
1010
|
+
ooh=ssn.height();
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
|
1014
|
+
|
1015
|
+
if (nexttrans==12)
|
1016
|
+
twx = oow;
|
1017
|
+
else
|
1018
|
+
if (nexttrans==15)
|
1019
|
+
twx = 0-oow;
|
1020
|
+
else
|
1021
|
+
if (nexttrans==13)
|
1022
|
+
twy = ooh;
|
1023
|
+
else
|
1024
|
+
if (nexttrans==14)
|
1025
|
+
twy = 0-ooh;
|
1026
|
+
|
1027
|
+
|
1028
|
+
// DEPENDING ON EXTENDED SPECIALS, DIFFERENT SCALE AND OPACITY FUNCTIONS NEED TO BE ADDED
|
1029
|
+
if (specials == 1) op = 0;
|
1030
|
+
if (specials == 2) op = 0;
|
1031
|
+
if (specials == 3) speedy = masterspeed / 1300;
|
1032
|
+
|
1033
|
+
if (specials==4 || specials==5)
|
1034
|
+
scal=0.6;
|
1035
|
+
if (specials==6 )
|
1036
|
+
scal=1.4;
|
1037
|
+
|
1038
|
+
|
1039
|
+
if (specials==5 || specials==6) {
|
1040
|
+
fromscale=1.4;
|
1041
|
+
op=0;
|
1042
|
+
oow=0;
|
1043
|
+
ooh=0;twx=0;twy=0;
|
1044
|
+
}
|
1045
|
+
if (specials==6) fromscale=0.6;
|
1046
|
+
var dd = 0;
|
1047
|
+
|
1048
|
+
if (specials==7) {
|
1049
|
+
oow = 0;
|
1050
|
+
ooh = 0;
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
var inc = nextsh.find('.slotslide'),
|
1054
|
+
outc = actsh.find('.slotslide, .defaultvid');
|
1055
|
+
|
1056
|
+
mtl.add(punchgs.TweenLite.set(actli,{zIndex:15}),0);
|
1057
|
+
mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0);
|
1058
|
+
|
1059
|
+
if (specials==8) {
|
1060
|
+
|
1061
|
+
mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0);
|
1062
|
+
mtl.add(punchgs.TweenLite.set(nextli,{zIndex:15}),0);
|
1063
|
+
mtl.add(punchgs.TweenLite.set(inc,{left:0, top:0, scale:1, opacity:1,rotation:0,ease:ei,force3D:"auto"}),0);
|
1064
|
+
} else {
|
1065
|
+
|
1066
|
+
mtl.add(punchgs.TweenLite.from(inc,speedy,{left:twx, top:twy, scale:fromscale, opacity:op,rotation:opt.rotate,ease:ei,force3D:"auto"}),0);
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
if (specials==4 || specials==5) {
|
1070
|
+
oow = 0; ooh=0;
|
1071
|
+
}
|
1072
|
+
|
1073
|
+
if (specials!=1)
|
1074
|
+
switch (nexttrans) {
|
1075
|
+
case 12:
|
1076
|
+
|
1077
|
+
mtl.add(punchgs.TweenLite.to(outc,speedy2,{'left':(0-oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0);
|
1078
|
+
break;
|
1079
|
+
case 15:
|
1080
|
+
mtl.add(punchgs.TweenLite.to(outc,speedy2,{'left':(oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0);
|
1081
|
+
break;
|
1082
|
+
case 13:
|
1083
|
+
mtl.add(punchgs.TweenLite.to(outc,speedy2,{'top':(0-ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0);
|
1084
|
+
break;
|
1085
|
+
case 14:
|
1086
|
+
mtl.add(punchgs.TweenLite.to(outc,speedy2,{'top':(ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:eo}),0);
|
1087
|
+
break;
|
1088
|
+
}
|
1089
|
+
}
|
1090
|
+
|
1091
|
+
//////////////////////////////////////
|
1092
|
+
// THE SLOTSLIDE - TRANSITION XVI. //
|
1093
|
+
//////////////////////////////////////
|
1094
|
+
if (nexttrans==16) { // PAPERCUT
|
1095
|
+
|
1096
|
+
|
1097
|
+
var subtl = new punchgs.TimelineLite();
|
1098
|
+
mtl.add(punchgs.TweenLite.set(actli,{'position':'absolute','z-index':20}),0);
|
1099
|
+
mtl.add(punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':15}),0);
|
1100
|
+
|
1101
|
+
|
1102
|
+
// PREPARE THE CUTS
|
1103
|
+
actli.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>');
|
1104
|
+
|
1105
|
+
actli.find('.tp-half-one').clone(true).appendTo(actli).addClass("tp-half-two");
|
1106
|
+
actli.find('.tp-half-two').removeClass('tp-half-one');
|
1107
|
+
|
1108
|
+
var oow = opt.width,
|
1109
|
+
ooh = opt.height;
|
1110
|
+
if (opt.autoHeight=="on")
|
1111
|
+
ooh = container.height();
|
1112
|
+
|
1113
|
+
|
1114
|
+
actli.find('.tp-half-one .defaultimg').wrap('<div class="tp-papercut" style="width:'+oow+'px;height:'+ooh+'px;"></div>')
|
1115
|
+
actli.find('.tp-half-two .defaultimg').wrap('<div class="tp-papercut" style="width:'+oow+'px;height:'+ooh+'px;"></div>')
|
1116
|
+
actli.find('.tp-half-two .defaultimg').css({position:'absolute',top:'-50%'});
|
1117
|
+
actli.find('.tp-half-two .tp-caption').wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>');
|
1118
|
+
|
1119
|
+
mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-two'),
|
1120
|
+
{width:oow,height:ooh,overflow:'hidden',zIndex:15,position:'absolute',top:ooh/2,left:'0px',transformPerspective:600,transformOrigin:"center bottom"}),0);
|
1121
|
+
|
1122
|
+
mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'),
|
1123
|
+
{width:oow,height:ooh/2,overflow:'visible',zIndex:10,position:'absolute',top:'0px',left:'0px',transformPerspective:600,transformOrigin:"center top"}),0);
|
1124
|
+
|
1125
|
+
// ANIMATE THE CUTS
|
1126
|
+
var img=actli.find('.defaultimg'),
|
1127
|
+
ro1=Math.round(Math.random()*20-10),
|
1128
|
+
ro2=Math.round(Math.random()*20-10),
|
1129
|
+
ro3=Math.round(Math.random()*20-10),
|
1130
|
+
xof = Math.random()*0.4-0.2,
|
1131
|
+
yof = Math.random()*0.4-0.2,
|
1132
|
+
sc1=Math.random()*1+1,
|
1133
|
+
sc2=Math.random()*1+1,
|
1134
|
+
sc3=Math.random()*0.3+0.3;
|
1135
|
+
|
1136
|
+
mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'),{overflow:'hidden'}),0);
|
1137
|
+
mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-one'),masterspeed/800,
|
1138
|
+
{width:oow,height:ooh/2,position:'absolute',top:'0px',left:'0px',force3D:"auto",transformOrigin:"center top"},
|
1139
|
+
{scale:sc1,rotation:ro1,y:(0-ooh-ooh/4),autoAlpha:0,ease:ei}),0);
|
1140
|
+
mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-two'),masterspeed/800,
|
1141
|
+
{width:oow,height:ooh,overflow:'hidden',position:'absolute',top:ooh/2,left:'0px',force3D:"auto",transformOrigin:"center bottom"},
|
1142
|
+
{scale:sc2,rotation:ro2,y:ooh+ooh/4,ease:ei,autoAlpha:0,onComplete:function() {
|
1143
|
+
// CLEAN UP
|
1144
|
+
punchgs.TweenLite.set(actli,{'position':'absolute','z-index':15});
|
1145
|
+
punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':20});
|
1146
|
+
if (actli.find('.tp-half-one').length>0) {
|
1147
|
+
actli.find('.tp-half-one .defaultimg').unwrap();
|
1148
|
+
actli.find('.tp-half-one .slotholder').unwrap();
|
1149
|
+
}
|
1150
|
+
actli.find('.tp-half-two').remove();
|
1151
|
+
}}),0);
|
1152
|
+
|
1153
|
+
subtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0);
|
1154
|
+
|
1155
|
+
if (actli.html()!=null)
|
1156
|
+
mtl.add(punchgs.TweenLite.fromTo(nextli,(masterspeed-200)/1000,
|
1157
|
+
{scale:sc3,x:(opt.width/4)*xof, y:(ooh/4)*yof,rotation:ro3,force3D:"auto",transformOrigin:"center center",ease:eo},
|
1158
|
+
{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0);
|
1159
|
+
|
1160
|
+
mtl.add(subtl,0);
|
1161
|
+
|
1162
|
+
|
1163
|
+
}
|
1164
|
+
|
1165
|
+
////////////////////////////////////////
|
1166
|
+
// THE SLOTSLIDE - TRANSITION XVII. //
|
1167
|
+
///////////////////////////////////////
|
1168
|
+
if (nexttrans==17) { // 3D CURTAIN HORIZONTAL
|
1169
|
+
|
1170
|
+
|
1171
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
1172
|
+
|
1173
|
+
nextsh.find('.slotslide').each(function(j) {
|
1174
|
+
var ss=jQuery(this);
|
1175
|
+
|
1176
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/800,
|
1177
|
+
{opacity:0,rotationY:0,scale:0.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},
|
1178
|
+
{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:ei,delay:j*0.06}),0);
|
1179
|
+
|
1180
|
+
});
|
1181
|
+
}
|
1182
|
+
|
1183
|
+
|
1184
|
+
|
1185
|
+
////////////////////////////////////////
|
1186
|
+
// THE SLOTSLIDE - TRANSITION XVIII. //
|
1187
|
+
///////////////////////////////////////
|
1188
|
+
if (nexttrans==18) { // 3D CURTAIN VERTICAL
|
1189
|
+
|
1190
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
1191
|
+
nextsh.find('.slotslide').each(function(j) {
|
1192
|
+
var ss=jQuery(this);
|
1193
|
+
|
1194
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/500,
|
1195
|
+
{autoAlpha:0,rotationY:110,scale:0.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},
|
1196
|
+
{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:ei,delay:j*0.06}),0);
|
1197
|
+
});
|
1198
|
+
|
1199
|
+
|
1200
|
+
|
1201
|
+
}
|
1202
|
+
|
1203
|
+
|
1204
|
+
////////////////////////////////////////
|
1205
|
+
// THE SLOTSLIDE - TRANSITION XIX. //
|
1206
|
+
///////////////////////////////////////
|
1207
|
+
if (nexttrans==19 || nexttrans==22) { // IN CUBE
|
1208
|
+
|
1209
|
+
var subtl = new punchgs.TimelineLite();
|
1210
|
+
//SET DEFAULT IMG UNVISIBLE
|
1211
|
+
|
1212
|
+
mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0);
|
1213
|
+
mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0);
|
1214
|
+
setTimeout(function() {
|
1215
|
+
actsh.find('.defaultimg').css({opacity:0});
|
1216
|
+
},100);
|
1217
|
+
var rot = 90,
|
1218
|
+
op = 1,
|
1219
|
+
torig ="center center ";
|
1220
|
+
|
1221
|
+
if (slidedirection==1) rot = -90;
|
1222
|
+
|
1223
|
+
if (nexttrans==19) {
|
1224
|
+
torig = torig+"-"+opt.height/2;
|
1225
|
+
op=0;
|
1226
|
+
|
1227
|
+
} else {
|
1228
|
+
torig = torig+opt.height/2;
|
1229
|
+
}
|
1230
|
+
|
1231
|
+
// ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT
|
1232
|
+
punchgs.TweenLite.set(container,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600});
|
1233
|
+
|
1234
|
+
nextsh.find('.slotslide').each(function(j) {
|
1235
|
+
var ss=jQuery(this);
|
1236
|
+
|
1237
|
+
subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
1238
|
+
{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:opt.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationX:rot},
|
1239
|
+
{left:0,rotationY:0,top:0,z:0, scale:1,force3D:"auto",rotationX:0, delay:(j*50)/1000,ease:ei}),0);
|
1240
|
+
subtl.add(punchgs.TweenLite.to(ss,0.1,{autoAlpha:1,delay:(j*50)/1000}),0);
|
1241
|
+
mtl.add(subtl);
|
1242
|
+
});
|
1243
|
+
|
1244
|
+
actsh.find('.slotslide').each(function(j) {
|
1245
|
+
var ss=jQuery(this);
|
1246
|
+
var rot = -90;
|
1247
|
+
if (slidedirection==1) rot = 90;
|
1248
|
+
|
1249
|
+
subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
1250
|
+
{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationX:0},
|
1251
|
+
{autoAlpha:1,rotationY:opt.rotate,top:0,z:10, scale:1,rotationX:rot, delay:(j*50)/1000,force3D:"auto",ease:eo}),0);
|
1252
|
+
|
1253
|
+
mtl.add(subtl);
|
1254
|
+
});
|
1255
|
+
mtl.add(punchgs.TweenLite.set(actli,{zIndex:18}),0);
|
1256
|
+
}
|
1257
|
+
|
1258
|
+
|
1259
|
+
|
1260
|
+
|
1261
|
+
////////////////////////////////////////
|
1262
|
+
// THE SLOTSLIDE - TRANSITION XX. //
|
1263
|
+
///////////////////////////////////////
|
1264
|
+
if (nexttrans==20 ) { // FLYIN
|
1265
|
+
|
1266
|
+
|
1267
|
+
setTimeout(function() {
|
1268
|
+
actsh.find('.defaultimg').css({opacity:0});
|
1269
|
+
},100);
|
1270
|
+
|
1271
|
+
if (slidedirection==1) {
|
1272
|
+
var ofx = -opt.width
|
1273
|
+
var rot =80;
|
1274
|
+
var torig = "20% 70% -"+opt.height/2;
|
1275
|
+
} else {
|
1276
|
+
var ofx = opt.width;
|
1277
|
+
var rot = -80;
|
1278
|
+
var torig = "80% 70% -"+opt.height/2;
|
1279
|
+
}
|
1280
|
+
|
1281
|
+
|
1282
|
+
nextsh.find('.slotslide').each(function(j) {
|
1283
|
+
var ss=jQuery(this),
|
1284
|
+
d = (j*50)/1000;
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
1289
|
+
{left:ofx,rotationX:40,z:-600, opacity:op,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,transformStyle:"flat",rotationY:rot},
|
1290
|
+
{left:0,rotationX:0,opacity:1,top:0,z:0, scale:1,rotationY:0, delay:d,ease:ei}),0);
|
1291
|
+
|
1292
|
+
|
1293
|
+
});
|
1294
|
+
actsh.find('.slotslide').each(function(j) {
|
1295
|
+
var ss=jQuery(this),
|
1296
|
+
d = (j*50)/1000;
|
1297
|
+
d = j>0 ? d + masterspeed/9000 : 0;
|
1298
|
+
|
1299
|
+
if (slidedirection!=1) {
|
1300
|
+
var ofx = -opt.width/2
|
1301
|
+
var rot =30;
|
1302
|
+
var torig = "20% 70% -"+opt.height/2;
|
1303
|
+
} else {
|
1304
|
+
var ofx = opt.width/2;
|
1305
|
+
var rot = -30;
|
1306
|
+
var torig = "80% 70% -"+opt.height/2;
|
1307
|
+
}
|
1308
|
+
eo=punchgs.Power2.easeInOut;
|
1309
|
+
|
1310
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
1311
|
+
{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0, force3D:"auto",transformPerspective:600,transformOrigin:torig, transformStyle:"flat",rotationY:0},
|
1312
|
+
{opacity:1,rotationX:20,top:0, z:-600, left:ofx, force3D:"auto",rotationY:rot, delay:d,ease:eo}),0);
|
1313
|
+
|
1314
|
+
|
1315
|
+
});
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
////////////////////////////////////////
|
1319
|
+
// THE SLOTSLIDE - TRANSITION XX. //
|
1320
|
+
///////////////////////////////////////
|
1321
|
+
if (nexttrans==21 || nexttrans==25) { // TURNOFF
|
1322
|
+
|
1323
|
+
|
1324
|
+
//SET DEFAULT IMG UNVISIBLE
|
1325
|
+
|
1326
|
+
setTimeout(function() {
|
1327
|
+
actsh.find('.defaultimg').css({opacity:0});
|
1328
|
+
},100);
|
1329
|
+
var rot = 90,
|
1330
|
+
ofx = -opt.width,
|
1331
|
+
rot2 = -rot;
|
1332
|
+
|
1333
|
+
if (slidedirection==1) {
|
1334
|
+
if (nexttrans==25) {
|
1335
|
+
var torig = "center top 0";
|
1336
|
+
rot = opt.rotate;
|
1337
|
+
} else {
|
1338
|
+
var torig = "left center 0";
|
1339
|
+
rot2 = opt.rotate;
|
1340
|
+
}
|
1341
|
+
|
1342
|
+
} else {
|
1343
|
+
ofx = opt.width;
|
1344
|
+
rot = -90;
|
1345
|
+
if (nexttrans==25) {
|
1346
|
+
var torig = "center bottom 0"
|
1347
|
+
rot2 = -rot;
|
1348
|
+
rot = opt.rotate;
|
1349
|
+
} else {
|
1350
|
+
var torig = "right center 0";
|
1351
|
+
rot2 = opt.rotate;
|
1352
|
+
}
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
nextsh.find('.slotslide').each(function(j) {
|
1356
|
+
var ss=jQuery(this),
|
1357
|
+
ms2 = ((masterspeed/1.5)/3);
|
1358
|
+
|
1359
|
+
|
1360
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,(ms2*2)/1000,
|
1361
|
+
{left:0,transformStyle:"flat",rotationX:rot2,z:0, autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:torig,rotationY:rot},
|
1362
|
+
{left:0,rotationX:0,top:0,z:0, autoAlpha:1,scale:1,rotationY:0,force3D:"auto",delay:ms2/1000, ease:ei}),0);
|
1363
|
+
});
|
1364
|
+
|
1365
|
+
|
1366
|
+
if (slidedirection!=1) {
|
1367
|
+
ofx = -opt.width
|
1368
|
+
rot = 90;
|
1369
|
+
|
1370
|
+
if (nexttrans==25) {
|
1371
|
+
torig = "center top 0"
|
1372
|
+
rot2 = -rot;
|
1373
|
+
rot = opt.rotate;
|
1374
|
+
} else {
|
1375
|
+
torig = "left center 0";
|
1376
|
+
rot2 = opt.rotate;
|
1377
|
+
}
|
1378
|
+
|
1379
|
+
} else {
|
1380
|
+
ofx = opt.width;
|
1381
|
+
rot = -90;
|
1382
|
+
if (nexttrans==25) {
|
1383
|
+
torig = "center bottom 0"
|
1384
|
+
rot2 = -rot;
|
1385
|
+
rot = opt.rotate;
|
1386
|
+
} else {
|
1387
|
+
torig = "right center 0";
|
1388
|
+
rot2 = opt.rotate;
|
1389
|
+
}
|
1390
|
+
}
|
1391
|
+
|
1392
|
+
actsh.find('.slotslide').each(function(j) {
|
1393
|
+
var ss=jQuery(this);
|
1394
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
1395
|
+
{left:0,transformStyle:"flat",rotationX:0,z:0, autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:torig,rotationY:0},
|
1396
|
+
{left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto", scale:1,rotationY:rot,ease:eo}),0);
|
1397
|
+
});
|
1398
|
+
}
|
1399
|
+
|
1400
|
+
|
1401
|
+
|
1402
|
+
////////////////////////////////////////
|
1403
|
+
// THE SLOTSLIDE - TRANSITION XX. //
|
1404
|
+
///////////////////////////////////////
|
1405
|
+
if (nexttrans==23 || nexttrans == 24) { // cube-horizontal - inboxhorizontal
|
1406
|
+
|
1407
|
+
//SET DEFAULT IMG UNVISIBLE
|
1408
|
+
setTimeout(function() {
|
1409
|
+
actsh.find('.defaultimg').css({opacity:0});
|
1410
|
+
},100);
|
1411
|
+
var rot = -90,
|
1412
|
+
op = 1,
|
1413
|
+
opx=0;
|
1414
|
+
|
1415
|
+
if (slidedirection==1) rot = 90;
|
1416
|
+
if (nexttrans==23) {
|
1417
|
+
var torig = "center center -"+opt.width/2;
|
1418
|
+
op=0;
|
1419
|
+
} else
|
1420
|
+
var torig = "center center "+opt.width/2;
|
1421
|
+
|
1422
|
+
punchgs.TweenLite.set(container,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500});
|
1423
|
+
nextsh.find('.slotslide').each(function(j) {
|
1424
|
+
var ss=jQuery(this);
|
1425
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
1426
|
+
{left:opx,rotationX:opt.rotate,force3D:"auto",opacity:op,top:0,scale:1,transformPerspective:1200,transformOrigin:torig,rotationY:rot},
|
1427
|
+
{left:0,rotationX:0,autoAlpha:1,top:0,z:0, scale:1,rotationY:0, delay:(j*50)/500,ease:ei}),0);
|
1428
|
+
});
|
1429
|
+
|
1430
|
+
rot = 90;
|
1431
|
+
if (slidedirection==1) rot = -90;
|
1432
|
+
|
1433
|
+
actsh.find('.slotslide').each(function(j) {
|
1434
|
+
var ss=jQuery(this);
|
1435
|
+
mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,
|
1436
|
+
{left:0,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformStyle:"flat",transformPerspective:1200,transformOrigin:torig, rotationY:0},
|
1437
|
+
{left:opx,rotationX:opt.rotate,top:0, scale:1,rotationY:rot, delay:(j*50)/500,ease:eo}),0);
|
1438
|
+
if (nexttrans==23) mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/2000,{autoAlpha:1},{autoAlpha:0,delay:(j*50)/500 + masterspeed/3000,ease:eo}),0);
|
1439
|
+
|
1440
|
+
});
|
1441
|
+
}
|
1442
|
+
|
1443
|
+
|
1444
|
+
return mtl;
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
})(jQuery);
|