futuro 1.0.6 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/html/assign/page.liquid +2 -1
- data/_includes/html/assign/site.liquid +30 -21
- data/_includes/html/layout/footer.liquid +5 -1
- data/_includes/html/page/content.liquid +70 -71
- data/_includes/html/page/content/loop/alert.liquid +31 -0
- data/_includes/html/page/content/loop/button/build.liquid +7 -1
- data/_includes/html/page/content/loop/checkbox.liquid +4 -8
- data/_includes/html/page/content/loop/form.liquid +14 -7
- data/_includes/html/page/content/loop/form/alert.liquid +8 -13
- data/_includes/html/page/content/loop/form/callout.liquid +1 -1
- data/_includes/html/page/content/loop/form/date.liquid +7 -7
- data/_includes/html/page/content/loop/form/email.liquid +38 -0
- data/_includes/html/page/content/loop/form/item.liquid +6 -9
- data/_includes/html/page/content/loop/form/message.liquid +1 -1
- data/_includes/html/page/content/loop/form/number.liquid +3 -3
- data/_includes/html/page/content/loop/form/phone.liquid +22 -21
- data/_includes/html/page/content/loop/form/radio.liquid +7 -7
- data/_includes/html/page/content/loop/form/select.liquid +10 -10
- data/_includes/html/page/content/loop/form/text.liquid +23 -27
- data/_includes/html/page/content/loop/form/textarea.liquid +6 -5
- data/_includes/html/page/content/loop/header/search.liquid +1 -1
- data/_includes/html/page/content/loop/input.liquid +17 -0
- data/_includes/html/page/content/loop/item.liquid +16 -0
- data/_includes/html/page/content/loop/{form/label.liquid → label.liquid} +24 -4
- data/_includes/html/page/content/loop/onemoment.liquid +6 -0
- data/_includes/html/page/content/loop/screen.liquid +2 -2
- data/_includes/html/page/content/loop/screen/header.liquid +3 -3
- data/_includes/html/page/content/loop/{select/create.liquid → select.liquid} +0 -0
- data/_includes/html/page/content/row.liquid +1 -1
- data/_includes/html/page/footnote.liquid +4 -2
- data/_includes/html/page/header.liquid +1 -2
- data/_includes/html/page/layout/home.liquid +17 -7
- data/_includes/html/page/topbar.liquid +28 -17
- data/_includes/html/page/topbar/navigation/link.liquid +22 -0
- data/_includes/html/site/scroller.liquid +1 -1
- data/_includes/svg/site/icon.liquid +39 -19
- data/_sass/_button.scss +4 -4
- data/_sass/area/chapter.scss +2 -1
- data/_sass/area/page.scss +1 -1
- data/_sass/area/topbar.scss +1 -1
- data/_sass/block/chart.scss +2 -1
- data/_sass/block/form/alert.scss +0 -4
- data/_sass/block/form/checkbox.scss +2 -18
- data/_sass/block/form/item.scss +17 -17
- data/_sass/block/util.scss +3 -0
- data/_sass/futuro.core.scss +19 -1
- data/_sass/helpers/extends.scss +0 -17
- data/_sass/helpers/extends/forms.scss +16 -0
- data/_sass/helpers/mixins/layout.scss +0 -1
- data/_sass/helpers/mixins/theme.scss +112 -119
- data/_sass/helpers/themes.scss +14 -13
- data/_sass/helpers/variables.scss +24 -226
- data/_sass/helpers/variables/colors.scss +290 -0
- data/_sass/item/scroller.scss +0 -1
- data/_sass/link/book.scss +8 -6
- data/_sass/link/navigation.scss +11 -7
- data/_sass/link/scroller.scss +4 -0
- data/_sass/title/book.scss +9 -0
- data/_sass/title/page.scss +2 -0
- data/_sass/title/type.scss +1 -0
- data/_sass/wrap/switch.scss +12 -0
- data/assets/js/footer/custom/1_Settings.js +1 -2
- data/assets/js/footer/custom/2_Check.width.js +6 -23
- data/assets/js/footer/custom/3_Setup.browse.js +1 -1
- data/assets/js/footer/custom/5_button.func.reset.js +15 -0
- data/assets/js/footer/custom/5_button.func.submit.js +39 -0
- data/assets/js/footer/custom/5_button.func.switch.js +26 -0
- data/assets/js/footer/custom/5_button.func.update.js +39 -0
- data/assets/js/footer/custom/5_check.form.js +7 -0
- data/assets/js/footer/custom/5_respond.scroller.js +11 -0
- data/assets/js/footer/vendor/futuro/checkr.js +40 -0
- data/assets/js/footer/vendor/{gsap-draw.js → gsap/draw.js} +0 -0
- data/assets/js/footer/vendor/{gsap-morph.js → gsap/morph.js} +0 -0
- data/assets/js/footer/vendor/{gsap-scramble.js → gsap/scramble.js} +0 -0
- data/assets/js/footer/vendor/gsap/scroll.js +11 -0
- data/assets/js/footer/vendor/{gsap-text.js → gsap/text.js} +0 -0
- data/assets/js/footer/vendor/{jquery.min.js → jquery.js} +0 -0
- data/assets/js/footer/vendor/{parsley.min.js → parsley.js} +0 -0
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.footer.vendor.js +52 -314
- data/assets/js/futuro.header.custom.js +1 -1
- data/assets/js/futuro.header.legacy.js +4 -3
- data/assets/js/futuro.header.legacy.shopify.js +4 -3
- data/assets/js/futuro.header.vendor.js +4 -3
- data/assets/js/header/custom/1_Settings.js +8 -2
- data/assets/js/header/custom/2_Site.js +1 -3
- data/assets/js/header/vendor/gsap.js +4 -3
- metadata +28 -20
- data/_includes/html/page/content/loop/alert/create.liquid +0 -20
- data/_includes/html/page/content/loop/alert/example.liquid +0 -4
- data/_includes/html/page/content/loop/form/input.liquid +0 -17
- data/_includes/html/page/content/loop/yousaved.liquid +0 -11
- data/_includes/svg/site/book/orwell.svg +0 -1
- data/_includes/svg/site/book/woolf.svg +0 -1
- data/assets/js/footer/custom/5_Animate.scroller.js +0 -11
- data/assets/js/footer/custom/5_Switch.button.js +0 -97
- data/assets/js/footer/vendor/scrollmagic-gsap.js +0 -310
- data/assets/js/footer/vendor/scrollmagic.js +0 -3
@@ -1 +1 @@
|
|
1
|
-
"use strict";var Artform={},Body={},Book={},Chapter={},Color={},Contrast={},Form={},Overlay={},Page={},Print={},Require={},Roller={},Save={},Setup={},Share={},Site={},Start={},Util={},Validate={},Browse={book:{},chapter:{},page:{},found:{}},Check={book:{},chapter:{},page:{}},Respond={roller:{default:{},morph:{},snap:{}}};function Target(e){return document.querySelector(Overlay.load.wrap).children[e-1]}function SwitchOn(e){return{display:"block",fill:e}}function SwitchOff(){return{clearProps:"display",delay:Overlay.load.speed}}
|
1
|
+
"use strict";var Artform={},Body={},Book={},Chapter={},Color={},Contrast={},Form={},Overlay={},Page={},Print={},Require={},Roller={},Save={},Setup={},Share={},Site={},Start={},Util={},Validate={},Browse={book:{},chapter:{},page:{},found:{}},Check={book:{},chapter:{},page:{}},Respond={roller:{default:{},morph:{},snap:{}}},Button={func:{}};Book.is={},Page.is={};var SubmitIsLocked=!(Chapter.is={});function Target(e){return document.querySelector(Overlay.load.wrap).children[e-1]}function SwitchOn(e){return{display:"block",fill:e}}function SwitchOff(){return{clearProps:"display",delay:Overlay.load.speed}}(Color={system:"#6e46a0",brand:"#ff8200",supply:"#f00a0a",demo:"#005a9b",generic:"#fe5900",theatre:"#019fc6",talks:"#ff9000",music:"#dc3636",classical:"#bf8f3a",cinema:"#259d31",tours:"#718ab2",hire:"#412f79",members:"#5d91e5",art:"#f90082",shop:"#23D5B0",paradise:"#e8396c",artforall:"#f9ae00",park:"#009640",news:"#009fe3",dodgers:"#0092FF",green:"#259d31"}).artforms={theatre:Color.theatre,talks:Color.talks,music:Color.music,classical:Color.classical,cinema:Color.cinema,tours:Color.tours,hire:Color.hire,members:Color.members,art:Color.art},Overlay.mobile={screen:".area.overlay-mobile",bar:".bar.mobile"},Overlay.load={screen:".area.overlay-load",wrap:".wrap.overlay-load",speed:.3},Overlay.custom=[{name:"about",open:!1},{name:"browse",open:!1},{name:"search",open:!1}],Overlay.button="button.navigation",Overlay.exit=".exit",Page.wrap=".wrap.type-page",Page.get=function(e,t,a){var r=Page.wrap;return e&&(r+=".chapter-".concat(e)),t&&(r+=".title-".concat(t)),a&&(r+=".tag-".concat(a)),r},Roller.default={input:".list.roller.input.style-default",output:".list.roller.output.style-default"},Roller.morph={input:".list.roller.input.style-morph",output:"svg#morph"},Roller.snap={input:".list.roller.input.style-snap",output:".list.pies.style-snap"},Site.tl=gsap.timeline({repeat:-1}),Site.inFocus=!1,Site.access={ratio:".access-ratio",best:"best",good:"good",poor:"poor"},Site.scramble={chars:"1234567890%",speed:.6},Site.mobile={active:!0},Site.tablet={active:!1,width:768},Site.desktop={active:!1,width:1200},Site.topbar={lnk:".link.navigation"},Site.scroller=".item.scroller",Site.chapter={target:".wrap.type-chapter"},Site.page={artwork:".area.page-artwork",share:".util-share",url:".util-url",height:560},Site.rollers={input:".list.roller.input",output:".list.roller.output",morph:"svg#morph"},Site.charts={list:".block.chart-container",pcent:".block.chart-pcent-title",title:".block.chart-title"},Site.pies={list:".list.pies.style-spin",pcent:".title.pie-pcent",wrap:".block.pie-wrap",data:".block.pie-svg-data",title:".title.pie-title"},Site.numbers=".title.number-value",Site.mobile.query="screen and (max-width: ".concat(Site.tablet.width-1,"px)"),Site.tablet.query="screen and (min-width: ".concat(Site.tablet.width,"px) and (max-width: ").concat(Site.desktop.width-1,"px)"),Site.desktop.query="screen and (min-width: ".concat(Site.desktop.width,"px)"),enquire.register(Site.mobile.query,{match:function(){Site.mobile.active=!0,Site.tablet.active=!1,Site.desktop.active=!1}}),enquire.register(Site.tablet.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!0,Site.desktop.active=!1}}),enquire.register(Site.desktop.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!1,Site.desktop.active=!0}}),"theme"==Config.install&&(Site.isTheme=!0),"library"==Config.install&&(Site.isLibrary=!0),Config.share&&(Site.isShareable=!0);
|
@@ -8,15 +8,16 @@ window.Modernizr=function(e,t,n){function r(e){m.cssText=e}function o(e,t){retur
|
|
8
8
|
|
9
9
|
!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g});
|
10
10
|
/*!
|
11
|
-
* GSAP 3.
|
11
|
+
* GSAP 3.3.1
|
12
12
|
* https://greensock.com
|
13
|
-
*
|
13
|
+
*
|
14
14
|
* @license Copyright 2020, GreenSock. All rights reserved.
|
15
15
|
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
|
16
16
|
* @author: Jack Doyle, jack@greensock.com
|
17
17
|
*/
|
18
18
|
|
19
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function J(t){return(l=dt(t,at))&&ne}function K(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function L(t,e){return!e&&console.warn(t)}function M(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function N(){return 0}function X(t){var e,n,i=t[0];if(r(i)||o(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=pt.length;n--&&!pt[n].targetTest(i););e=pt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Rt(t[n],e)))||t.splice(n,1);return t}function Y(t){return t._gsap||X(yt(t))[0]._gsap}function Z(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function $(t,e){return(t=t.split(",")).forEach(e)||t}function _(t){return Math.round(1e4*t)/1e4}function aa(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n
|
19
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function K(t){return(l=pt(t,at))&&ie}function L(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function M(t,e){return!e&&console.warn(t)}function N(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function O(){return 0}function Y(t){var e,i,n=t[0];if(r(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=dt.length;i--&&!dt[i].targetTest(n););e=dt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ft(t[i],e)))||t.splice(i,1);return t}function Z(t){return t._gsap||Y(yt(t))[0]._gsap}function $(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function _(t,e){return(t=t.split(",")).forEach(e)||t}function aa(t){return Math.round(1e5*t)/1e5||0}function ba(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i
|
20
|
+
|
20
21
|
|
21
22
|
/*!
|
22
23
|
* Simple-Jekyll-Search v1.6.3 (https://github.com/christian-fei/Simple-Jekyll-Search)
|
@@ -8,12 +8,13 @@ window.Modernizr=function(e,t,n){function r(e){m.cssText=e}function o(e,t){retur
|
|
8
8
|
|
9
9
|
!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g});
|
10
10
|
/*!
|
11
|
-
* GSAP 3.
|
11
|
+
* GSAP 3.3.1
|
12
12
|
* https://greensock.com
|
13
|
-
*
|
13
|
+
*
|
14
14
|
* @license Copyright 2020, GreenSock. All rights reserved.
|
15
15
|
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
|
16
16
|
* @author: Jack Doyle, jack@greensock.com
|
17
17
|
*/
|
18
18
|
|
19
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function J(t){return(l=dt(t,at))&&ne}function K(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function L(t,e){return!e&&console.warn(t)}function M(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function N(){return 0}function X(t){var e,n,i=t[0];if(r(i)||o(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=pt.length;n--&&!pt[n].targetTest(i););e=pt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Rt(t[n],e)))||t.splice(n,1);return t}function Y(t){return t._gsap||X(yt(t))[0]._gsap}function Z(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function $(t,e){return(t=t.split(",")).forEach(e)||t}function _(t){return Math.round(1e4*t)/1e4}function aa(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n
|
19
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function K(t){return(l=pt(t,at))&&ie}function L(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function M(t,e){return!e&&console.warn(t)}function N(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function O(){return 0}function Y(t){var e,i,n=t[0];if(r(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=dt.length;i--&&!dt[i].targetTest(n););e=dt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ft(t[i],e)))||t.splice(i,1);return t}function Z(t){return t._gsap||Y(yt(t))[0]._gsap}function $(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function _(t,e){return(t=t.split(",")).forEach(e)||t}function aa(t){return Math.round(1e5*t)/1e5||0}function ba(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i
|
20
|
+
|
@@ -10,15 +10,16 @@
|
|
10
10
|
|
11
11
|
!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g});
|
12
12
|
/*!
|
13
|
-
* GSAP 3.
|
13
|
+
* GSAP 3.3.1
|
14
14
|
* https://greensock.com
|
15
|
-
*
|
15
|
+
*
|
16
16
|
* @license Copyright 2020, GreenSock. All rights reserved.
|
17
17
|
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
|
18
18
|
* @author: Jack Doyle, jack@greensock.com
|
19
19
|
*/
|
20
20
|
|
21
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function J(t){return(l=dt(t,at))&&ne}function K(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function L(t,e){return!e&&console.warn(t)}function M(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function N(){return 0}function X(t){var e,n,i=t[0];if(r(i)||o(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=pt.length;n--&&!pt[n].targetTest(i););e=pt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Rt(t[n],e)))||t.splice(n,1);return t}function Y(t){return t._gsap||X(yt(t))[0]._gsap}function Z(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function $(t,e){return(t=t.split(",")).forEach(e)||t}function _(t){return Math.round(1e4*t)/1e4}function aa(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n
|
21
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function K(t){return(l=pt(t,at))&&ie}function L(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function M(t,e){return!e&&console.warn(t)}function N(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function O(){return 0}function Y(t){var e,i,n=t[0];if(r(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=dt.length;i--&&!dt[i].targetTest(n););e=dt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ft(t[i],e)))||t.splice(i,1);return t}function Z(t){return t._gsap||Y(yt(t))[0]._gsap}function $(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function _(t,e){return(t=t.split(",")).forEach(e)||t}function aa(t){return Math.round(1e5*t)/1e5||0}function ba(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i
|
22
|
+
|
22
23
|
|
23
24
|
window.Modernizr=function(e,t,n){function r(e){m.cssText=e}function o(e,t){return r(w.join(e+";")+(t||""))}function i(e,t){return typeof e===t}function s(e,t){return!!~(""+e).indexOf(t)}function c(e,t){for(var r in e){var o=e[r];if(!s(o,"-")&&m[o]!==n)return"pfx"==t?o:!0}return!1}function a(e,t,r){for(var o in e){var s=t[e[o]];if(s!==n)return r===!1?e[o]:i(s,"function")?s.bind(r||t):s}return!1}function u(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+C.join(r+" ")+r).split(" ");return i(t,"string")||i(t,"undefined")?c(o,t):(o=(e+" "+E.join(r+" ")+r).split(" "),a(o,t,n))}var f="2.8.3",l={},d=!0,p=t.documentElement,v="modernizr",y=t.createElement(v),m=y.style,h,g={}.toString,w=" -webkit- -moz- -o- -ms- ".split(" "),b="Webkit Moz O ms",C=b.split(" "),E=b.toLowerCase().split(" "),j={svg:"http://www.w3.org/2000/svg"},x={},T={},k={},z=[],N=z.slice,S,L=function(e,n,r,o){var i,s,c,a,u=t.createElement("div"),f=t.body,l=f||t.createElement("body");if(parseInt(r,10))for(;r--;)c=t.createElement("div"),c.id=o?o[r]:v+(r+1),u.appendChild(c);return i=["­",'<style id="s',v,'">',e,"</style>"].join(""),u.id=v,(f?u:l).innerHTML+=i,l.appendChild(u),f||(l.style.background="",l.style.overflow="hidden",a=p.style.overflow,p.style.overflow="hidden",p.appendChild(l)),s=n(u,e),f?u.parentNode.removeChild(u):(l.parentNode.removeChild(l),p.style.overflow=a),!!s},O={}.hasOwnProperty,P;P=i(O,"undefined")||i(O.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(e,t){return O.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=N.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var i=new o,s=t.apply(i,n.concat(N.call(arguments)));return Object(s)===s?s:i}return t.apply(e,n.concat(N.call(arguments)))};return r}),x.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),s(m.backgroundColor,"rgba")},x.backgroundsize=function(){return u("backgroundSize")},x.opacity=function(){return o("opacity:.55"),/^0.55$/.test(m.opacity)},x.fontface=function(){var e;return L('@font-face {font-family:"font";src:url("https://")}',function(n,r){var o=t.getElementById("smodernizr"),i=o.sheet||o.styleSheet,s=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"";e=/src/i.test(s)&&0===s.indexOf(r.split(" ")[0])}),e},x.svg=function(){return!!t.createElementNS&&!!t.createElementNS(j.svg,"svg").createSVGRect},x.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==j.svg};for(var R in x)P(x,R)&&(S=R.toLowerCase(),l[S]=x[R](),z.push((l[S]?"":"no-")+S));return l.addTest=function(e,t){if("object"==typeof e)for(var r in e)P(e,r)&&l.addTest(r,e[r]);else{if(e=e.toLowerCase(),l[e]!==n)return l;t="function"==typeof t?t():t,"undefined"!=typeof d&&d&&(p.className+=" "+(t?"":"no-")+e),l[e]=t}return l},r(""),y=h=null,l._version=f,l._prefixes=w,l._domPrefixes=E,l._cssomPrefixes=C,l.testProp=function(e){return c([e])},l.testAllProps=u,l.testStyles=L,p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+z.join(" "):""),l}(this,this.document);
|
24
25
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*!
|
2
|
-
* GSAP 3.
|
2
|
+
* GSAP 3.3.1
|
3
3
|
* https://greensock.com
|
4
|
-
*
|
4
|
+
*
|
5
5
|
* @license Copyright 2020, GreenSock. All rights reserved.
|
6
6
|
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
|
7
7
|
* @author: Jack Doyle, jack@greensock.com
|
8
8
|
*/
|
9
9
|
|
10
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function J(t){return(l=dt(t,at))&&ne}function K(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function L(t,e){return!e&&console.warn(t)}function M(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function N(){return 0}function X(t){var e,n,i=t[0];if(r(i)||o(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=pt.length;n--&&!pt[n].targetTest(i););e=pt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Rt(t[n],e)))||t.splice(n,1);return t}function Y(t){return t._gsap||X(yt(t))[0]._gsap}function Z(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function $(t,e){return(t=t.split(",")).forEach(e)||t}function _(t){return Math.round(1e4*t)/1e4}function aa(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n
|
10
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function K(t){return(l=pt(t,at))&&ie}function L(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function M(t,e){return!e&&console.warn(t)}function N(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function O(){return 0}function Y(t){var e,i,n=t[0];if(r(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=dt.length;i--&&!dt[i].targetTest(n););e=dt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ft(t[i],e)))||t.splice(i,1);return t}function Z(t){return t._gsap||Y(yt(t))[0]._gsap}function $(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function _(t,e){return(t=t.split(",")).forEach(e)||t}function aa(t){return Math.round(1e5*t)/1e5||0}function ba(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i
|
11
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: futuro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Heading
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -118,8 +118,7 @@ files:
|
|
118
118
|
- _includes/html/page/content/header.liquid
|
119
119
|
- _includes/html/page/content/loader.liquid
|
120
120
|
- _includes/html/page/content/loop.liquid
|
121
|
-
- _includes/html/page/content/loop/alert
|
122
|
-
- _includes/html/page/content/loop/alert/example.liquid
|
121
|
+
- _includes/html/page/content/loop/alert.liquid
|
123
122
|
- _includes/html/page/content/loop/artwork/image.liquid
|
124
123
|
- _includes/html/page/content/loop/artwork/video.liquid
|
125
124
|
- _includes/html/page/content/loop/button/build.liquid
|
@@ -132,10 +131,9 @@ files:
|
|
132
131
|
- _includes/html/page/content/loop/form/button.liquid
|
133
132
|
- _includes/html/page/content/loop/form/callout.liquid
|
134
133
|
- _includes/html/page/content/loop/form/date.liquid
|
134
|
+
- _includes/html/page/content/loop/form/email.liquid
|
135
135
|
- _includes/html/page/content/loop/form/fee.liquid
|
136
|
-
- _includes/html/page/content/loop/form/input.liquid
|
137
136
|
- _includes/html/page/content/loop/form/item.liquid
|
138
|
-
- _includes/html/page/content/loop/form/label.liquid
|
139
137
|
- _includes/html/page/content/loop/form/legend.liquid
|
140
138
|
- _includes/html/page/content/loop/form/message.liquid
|
141
139
|
- _includes/html/page/content/loop/form/number.liquid
|
@@ -151,7 +149,11 @@ files:
|
|
151
149
|
- _includes/html/page/content/loop/header/logo.liquid
|
152
150
|
- _includes/html/page/content/loop/header/search.liquid
|
153
151
|
- _includes/html/page/content/loop/header/subheader.liquid
|
152
|
+
- _includes/html/page/content/loop/input.liquid
|
153
|
+
- _includes/html/page/content/loop/item.liquid
|
154
|
+
- _includes/html/page/content/loop/label.liquid
|
154
155
|
- _includes/html/page/content/loop/number.liquid
|
156
|
+
- _includes/html/page/content/loop/onemoment.liquid
|
155
157
|
- _includes/html/page/content/loop/pies.liquid
|
156
158
|
- _includes/html/page/content/loop/pies/create.liquid
|
157
159
|
- _includes/html/page/content/loop/roller/assign.liquid
|
@@ -164,8 +166,7 @@ files:
|
|
164
166
|
- _includes/html/page/content/loop/screen/row.liquid
|
165
167
|
- _includes/html/page/content/loop/screen/small.liquid
|
166
168
|
- _includes/html/page/content/loop/screen/title.liquid
|
167
|
-
- _includes/html/page/content/loop/select
|
168
|
-
- _includes/html/page/content/loop/yousaved.liquid
|
169
|
+
- _includes/html/page/content/loop/select.liquid
|
169
170
|
- _includes/html/page/content/more.liquid
|
170
171
|
- _includes/html/page/content/roller.liquid
|
171
172
|
- _includes/html/page/content/row.liquid
|
@@ -179,6 +180,7 @@ files:
|
|
179
180
|
- _includes/html/page/title.liquid
|
180
181
|
- _includes/html/page/title/create.liquid
|
181
182
|
- _includes/html/page/topbar.liquid
|
183
|
+
- _includes/html/page/topbar/navigation/link.liquid
|
182
184
|
- _includes/html/page/util.liquid
|
183
185
|
- _includes/html/page/util/author.liquid
|
184
186
|
- _includes/html/page/util/share.liquid
|
@@ -188,8 +190,6 @@ files:
|
|
188
190
|
- _includes/html/site/header.liquid
|
189
191
|
- _includes/html/site/scroller.liquid
|
190
192
|
- _includes/svg/orwell/animal/icon.svg
|
191
|
-
- _includes/svg/site/book/orwell.svg
|
192
|
-
- _includes/svg/site/book/woolf.svg
|
193
193
|
- _includes/svg/site/btn/about.svg
|
194
194
|
- _includes/svg/site/btn/add.svg
|
195
195
|
- _includes/svg/site/btn/author.svg
|
@@ -262,6 +262,7 @@ files:
|
|
262
262
|
- _sass/futuro.max.scss
|
263
263
|
- _sass/futuro.shopify.scss
|
264
264
|
- _sass/helpers/extends.scss
|
265
|
+
- _sass/helpers/extends/forms.scss
|
265
266
|
- _sass/helpers/extends/grid.scss
|
266
267
|
- _sass/helpers/extends/layout.scss
|
267
268
|
- _sass/helpers/mixins.scss
|
@@ -271,16 +272,19 @@ files:
|
|
271
272
|
- _sass/helpers/mixins/theme.scss
|
272
273
|
- _sass/helpers/themes.scss
|
273
274
|
- _sass/helpers/variables.scss
|
275
|
+
- _sass/helpers/variables/colors.scss
|
274
276
|
- _sass/item/pie.scss
|
275
277
|
- _sass/item/roller.scss
|
276
278
|
- _sass/item/scroller.scss
|
277
279
|
- _sass/link/book.scss
|
278
280
|
- _sass/link/browse.scss
|
279
281
|
- _sass/link/navigation.scss
|
282
|
+
- _sass/link/scroller.scss
|
280
283
|
- _sass/list/pie.scss
|
281
284
|
- _sass/list/roller.scss
|
282
285
|
- _sass/list/scroller.scss
|
283
286
|
- _sass/title/alert.scss
|
287
|
+
- _sass/title/book.scss
|
284
288
|
- _sass/title/browse.scss
|
285
289
|
- _sass/title/checkbox.scss
|
286
290
|
- _sass/title/copied.scss
|
@@ -301,6 +305,7 @@ files:
|
|
301
305
|
- _sass/wrap/page.scss
|
302
306
|
- _sass/wrap/scroller.scss
|
303
307
|
- _sass/wrap/select.scss
|
308
|
+
- _sass/wrap/switch.scss
|
304
309
|
- _sass/wrap/text.scss
|
305
310
|
- assets/css/fallback.jpg
|
306
311
|
- assets/css/favicon.png
|
@@ -333,25 +338,28 @@ files:
|
|
333
338
|
- assets/js/footer/custom/5_Animate.chart.js
|
334
339
|
- assets/js/footer/custom/5_Animate.number.js
|
335
340
|
- assets/js/footer/custom/5_Animate.pies.js
|
336
|
-
- assets/js/footer/custom/5_Animate.scroller.js
|
337
341
|
- assets/js/footer/custom/5_Artform.header.js
|
338
342
|
- assets/js/footer/custom/5_Contrast.js
|
339
343
|
- assets/js/footer/custom/5_Respond.browse.js
|
340
344
|
- assets/js/footer/custom/5_Respond.roller.js
|
341
|
-
- assets/js/footer/custom/5_Switch.button.js
|
342
345
|
- assets/js/footer/custom/5_Switch.focus.js
|
343
346
|
- assets/js/footer/custom/5_Util.share.js
|
344
347
|
- assets/js/footer/custom/5_WhatsOn.js
|
345
348
|
- assets/js/footer/custom/5_YouSaved.js
|
349
|
+
- assets/js/footer/custom/5_button.func.reset.js
|
350
|
+
- assets/js/footer/custom/5_button.func.submit.js
|
351
|
+
- assets/js/footer/custom/5_button.func.switch.js
|
352
|
+
- assets/js/footer/custom/5_button.func.update.js
|
346
353
|
- assets/js/footer/custom/5_check.form.js
|
347
|
-
- assets/js/footer/
|
348
|
-
- assets/js/footer/vendor/
|
349
|
-
- assets/js/footer/vendor/gsap
|
350
|
-
- assets/js/footer/vendor/gsap
|
351
|
-
- assets/js/footer/vendor/
|
352
|
-
- assets/js/footer/vendor/
|
353
|
-
- assets/js/footer/vendor/
|
354
|
-
- assets/js/footer/vendor/
|
354
|
+
- assets/js/footer/custom/5_respond.scroller.js
|
355
|
+
- assets/js/footer/vendor/futuro/checkr.js
|
356
|
+
- assets/js/footer/vendor/gsap/draw.js
|
357
|
+
- assets/js/footer/vendor/gsap/morph.js
|
358
|
+
- assets/js/footer/vendor/gsap/scramble.js
|
359
|
+
- assets/js/footer/vendor/gsap/scroll.js
|
360
|
+
- assets/js/footer/vendor/gsap/text.js
|
361
|
+
- assets/js/footer/vendor/jquery.js
|
362
|
+
- assets/js/footer/vendor/parsley.js
|
355
363
|
- assets/js/futuro.footer.custom.js
|
356
364
|
- assets/js/futuro.footer.vendor.js
|
357
365
|
- assets/js/futuro.header.custom.js
|
@@ -1,20 +0,0 @@
|
|
1
|
-
|
2
|
-
<span class="wrap alert-wrap" style="display:block;">
|
3
|
-
|
4
|
-
<span class="block alert-content">
|
5
|
-
|
6
|
-
<span class="title alert-content alert-feed">
|
7
|
-
|
8
|
-
{{ include.title }}
|
9
|
-
|
10
|
-
</span>
|
11
|
-
|
12
|
-
<span class="title alert-content alert-clone">
|
13
|
-
|
14
|
-
{{ include.title }}
|
15
|
-
|
16
|
-
</span>
|
17
|
-
|
18
|
-
</span>
|
19
|
-
|
20
|
-
</span>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
|
2
|
-
{% if include.name %}
|
3
|
-
|
4
|
-
{% assign group = include.name %}
|
5
|
-
|
6
|
-
{% else %}
|
7
|
-
|
8
|
-
{% assign group = name %}
|
9
|
-
|
10
|
-
{% endif %}
|
11
|
-
|
12
|
-
<input {% if include.class %}class="{{ include.class }}"{% endif %}
|
13
|
-
type = "{{ include.type }}"
|
14
|
-
id = "{{ name }}"
|
15
|
-
name = "{{ group }}"
|
16
|
-
value = "{{ include.value }}"
|
17
|
-
{% if include.placeholder %}placeholder="{{ include.placeholder }}"{% endif %}>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
|
2
|
-
{%- if item.item -%}
|
3
|
-
|
4
|
-
<span class="block form-alert {{ PageTitle | prepend: 'title-' }}">
|
5
|
-
<span class="block item-object {{ PageTitle | prepend: 'title-' }}">
|
6
|
-
<span>{{ item.item }}</span>
|
7
|
-
<span class="block item-object-price">{{ item.price | prepend: '£' }}</span>
|
8
|
-
</span>
|
9
|
-
</span>
|
10
|
-
|
11
|
-
{%- endif -%}
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" viewBox="0 0 110 440" xml:space="preserve" enable-background="new 0 0 110 440"><path d="M55.8,263.6c8.9,0,14.9,6.5,14.9,16.4c0,9.5-6.3,16.4-14.9,16.4c-8.6,0-14.9-6.9-14.9-16.6C41,270.2,47.1,263.6,55.8,263.6z M55.9,286.2c4.1,0,7.3-2.6,7.3-6.2c0-4.1-2.7-6.5-7.3-6.5c-4.4,0-7.3,2.5-7.3,6.3C48.6,283.5,51.7,286.2,55.9,286.2z M42,261.8 v-9.3h3.5c-3.2-2-4.3-4.1-4.3-7.4c0-0.7,0.1-1.1,0.3-3.4h8.9c-0.3,1.1-0.4,1.7-0.4,2.5c0,5.2,2.8,7.9,8,7.9h11.7v9.7H42z M42,231.3 l14.9-5.2L42,221.4v-7l14.9-4.6L42,204.6v-9.5l27.7,10.8v7.3L54.2,218l15.6,4.9v7.4L42,241.5V231.3z M61,167.4 c6.1,0.7,9.9,6.4,9.9,14.6c0,9.4-5.8,15.4-14.8,15.4c-9,0-14.9-5.9-14.9-15c0-5.9,2.5-11,6.5-13.1c2.2-1.2,5.7-2,9.1-2h1.9v20.1 c3.7-0.2,5.5-1.9,5.5-5.2c0-2.4-0.5-3.2-3-4.7V167.4z M52,177.3c-3.1,0.5-4.4,2-4.4,4.9c0,2.7,1.6,4.5,4.4,5V177.3z M28,165.6v-9.7 h41.8v9.7H28z M28,153.4v-9.7h41.8v9.7H28z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" viewBox="0 0 110 440" xml:space="preserve" enable-background="new 0 0 110 440"><path d="M42.6,281l14.9-5.2l-14.9-4.7v-7l14.9-4.6l-14.9-5.2v-9.5l27.7,10.8v7.3l-15.6,4.7l15.6,4.9v7.4l-27.7,11.3V281z M56.4,214.4c8.9,0,14.9,6.5,14.9,16.4c0,9.5-6.3,16.4-14.9,16.4c-8.6,0-14.9-6.9-14.9-16.6C41.6,221,47.7,214.4,56.4,214.4z M56.5,237.1c4.1,0,7.3-2.6,7.3-6.2c0-4.1-2.7-6.5-7.3-6.5c-4.4,0-7.3,2.5-7.3,6.3C49.2,234.4,52.3,237.1,56.5,237.1z M56.4,180.4 c8.9,0,14.9,6.5,14.9,16.4c0,9.5-6.3,16.4-14.9,16.4c-8.6,0-14.9-6.9-14.9-16.6C41.6,187,47.7,180.4,56.4,180.4z M56.5,203.1 c4.1,0,7.3-2.6,7.3-6.2c0-4.1-2.7-6.5-7.3-6.5c-4.4,0-7.3,2.5-7.3,6.3C49.2,200.4,52.3,203.1,56.5,203.1z M28.6,178.6v-9.7h41.8v9.7 H28.6z M42.6,167.4v-3.9H38c-7,0-10-3.1-10-10.6c0-1.4,0.1-2.4,0.5-4.1h7.4c-0.3,1-0.4,1.5-0.4,2.1c0,2,1.2,2.8,4.1,2.8h3.1v-5H50 v5.1h20.3v9.7H50v3.9H42.6z"/></svg>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
|
2
|
-
$('.item.scroller').each(function(index,value){
|
3
|
-
let label = $(value)[0].classList[2],
|
4
|
-
trigger = `#${label}-${label}`,
|
5
|
-
tween = `.item.scroller.${label}`,
|
6
|
-
scene = new ScrollMagic
|
7
|
-
.Scene({ triggerElement : trigger })
|
8
|
-
.setTween(tween,0.1,{ opacity : 1 })
|
9
|
-
.addTo(controller);
|
10
|
-
return scene;
|
11
|
-
});
|
@@ -1,97 +0,0 @@
|
|
1
|
-
|
2
|
-
let Button = {
|
3
|
-
target : ".button-wrap.switch-button"
|
4
|
-
};
|
5
|
-
|
6
|
-
const ButtonSwitch = (e,type) => {
|
7
|
-
let text = $(e.target),
|
8
|
-
bg = text.siblings(".button-bg"),
|
9
|
-
btn = text.parent(),
|
10
|
-
all = [text,btn,bg];
|
11
|
-
|
12
|
-
let Text = {
|
13
|
-
dis : {
|
14
|
-
before : $(btn).siblings(".before"),
|
15
|
-
after : $(btn).siblings(".after")
|
16
|
-
},
|
17
|
-
dat : {
|
18
|
-
before : $(btn).parent().siblings().children(".before"),
|
19
|
-
after : $(btn).parent().siblings().children(".after")
|
20
|
-
}
|
21
|
-
};
|
22
|
-
|
23
|
-
let before = [Text.dis.before,Text.dat.before],
|
24
|
-
after = [Text.dis.after,Text.dat.after];
|
25
|
-
|
26
|
-
if (btn.hasClass("undo")) {
|
27
|
-
|
28
|
-
if (type === "down") {
|
29
|
-
|
30
|
-
gsap.set([btn,bg],{
|
31
|
-
clearProps : "all"
|
32
|
-
});
|
33
|
-
|
34
|
-
} else if (type === "up") {
|
35
|
-
|
36
|
-
$(btn).removeClass("undo");
|
37
|
-
|
38
|
-
gsap.set([before,after],{
|
39
|
-
clearProps : "all"
|
40
|
-
});
|
41
|
-
|
42
|
-
gsap.set(text,{
|
43
|
-
text : "Next"
|
44
|
-
});
|
45
|
-
}
|
46
|
-
|
47
|
-
|
48
|
-
} else {
|
49
|
-
|
50
|
-
if (type === "down") {
|
51
|
-
gsap.set([btn,bg],{
|
52
|
-
scale : 0.95
|
53
|
-
});
|
54
|
-
}
|
55
|
-
|
56
|
-
else if (type === "up") {
|
57
|
-
|
58
|
-
let tl = gsap.timeline();
|
59
|
-
|
60
|
-
tl
|
61
|
-
.to(before,{
|
62
|
-
duration : 0.2,
|
63
|
-
opacity : 0
|
64
|
-
})
|
65
|
-
.set([btn,bg],{
|
66
|
-
backgroundColor : Color.green
|
67
|
-
})
|
68
|
-
.set(text,{
|
69
|
-
text : "Undo"
|
70
|
-
})
|
71
|
-
.set(before,{
|
72
|
-
display : "none",
|
73
|
-
})
|
74
|
-
.set(after,{
|
75
|
-
display : "block"
|
76
|
-
})
|
77
|
-
.to(bg,{
|
78
|
-
duration : 0.5,
|
79
|
-
scaleX : 1.2,
|
80
|
-
scaleY : 1.3,
|
81
|
-
opacity : 0
|
82
|
-
})
|
83
|
-
.call(()=>{
|
84
|
-
$(btn).addClass("undo");
|
85
|
-
})
|
86
|
-
;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
$(Button.target)
|
92
|
-
.mousedown(function(e) {
|
93
|
-
ButtonSwitch(e,'down');
|
94
|
-
})
|
95
|
-
.mouseup(function(e) {
|
96
|
-
ButtonSwitch(e,'up');
|
97
|
-
});
|
@@ -1,310 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* ScrollMagic v2.0.5 (2015-04-29)
|
3
|
-
* The javascript library for magical scroll interactions.
|
4
|
-
* (c) 2015 Jan Paepke (@janpaepke)
|
5
|
-
* Project Website: http://scrollmagic.io
|
6
|
-
*
|
7
|
-
* @version 2.0.5
|
8
|
-
* @license Dual licensed under MIT license and GPL.
|
9
|
-
* @author Jan Paepke - e-mail@janpaepke.de
|
10
|
-
*
|
11
|
-
* @file ScrollMagic GSAP Animation Plugin.
|
12
|
-
*
|
13
|
-
* requires: GSAP ~1.14
|
14
|
-
* Powered by the Greensock Animation Platform (GSAP): http://www.greensock.com/js
|
15
|
-
* Greensock License info at http://www.greensock.com/licensing/
|
16
|
-
*/
|
17
|
-
/**
|
18
|
-
* This plugin is meant to be used in conjunction with the Greensock Animation Plattform.
|
19
|
-
* It offers an easy API to trigger Tweens or synchronize them to the scrollbar movement.
|
20
|
-
*
|
21
|
-
* Both the `lite` and the `max` versions of the GSAP library are supported.
|
22
|
-
* The most basic requirement is `TweenLite`.
|
23
|
-
*
|
24
|
-
* To have access to this extension, please include `plugins/animation.gsap.js`.
|
25
|
-
* @requires {@link http://greensock.com/gsap|GSAP ~1.14.x}
|
26
|
-
* @mixin animation.GSAP
|
27
|
-
*/
|
28
|
-
(function (root, factory) {
|
29
|
-
if (typeof define === 'function' && define.amd) {
|
30
|
-
// AMD. Register as an anonymous module.
|
31
|
-
define(['ScrollMagic', 'TweenMax', 'TimelineMax'], factory);
|
32
|
-
} else if (typeof exports === 'object') {
|
33
|
-
// CommonJS
|
34
|
-
// Loads whole gsap package onto global scope.
|
35
|
-
require('gsap');
|
36
|
-
factory(require('scrollmagic'), TweenMax, TimelineMax);
|
37
|
-
} else {
|
38
|
-
// Browser globals
|
39
|
-
factory(root.ScrollMagic || (root.jQuery && root.jQuery.ScrollMagic), root.TweenMax || root.TweenLite, root.TimelineMax || root.TimelineLite);
|
40
|
-
}
|
41
|
-
}(this, function (ScrollMagic, Tween, Timeline) {
|
42
|
-
"use strict";
|
43
|
-
var NAMESPACE = "animation.gsap";
|
44
|
-
|
45
|
-
var
|
46
|
-
console = window.console || {},
|
47
|
-
err = Function.prototype.bind.call(console.error || console.log ||
|
48
|
-
function () {}, console);
|
49
|
-
if (!ScrollMagic) {
|
50
|
-
err("(" + NAMESPACE + ") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");
|
51
|
-
}
|
52
|
-
if (!Tween) {
|
53
|
-
err("(" + NAMESPACE + ") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs.");
|
54
|
-
}
|
55
|
-
|
56
|
-
/*
|
57
|
-
* ----------------------------------------------------------------
|
58
|
-
* Extensions for Scene
|
59
|
-
* ----------------------------------------------------------------
|
60
|
-
*/
|
61
|
-
/**
|
62
|
-
* Every instance of ScrollMagic.Scene now accepts an additional option.
|
63
|
-
* See {@link ScrollMagic.Scene} for a complete list of the standard options.
|
64
|
-
* @memberof! animation.GSAP#
|
65
|
-
* @method new ScrollMagic.Scene(options)
|
66
|
-
* @example
|
67
|
-
* var scene = new ScrollMagic.Scene({tweenChanges: true});
|
68
|
-
*
|
69
|
-
* @param {object} [options] - Options for the Scene. The options can be updated at any time.
|
70
|
-
* @param {boolean} [options.tweenChanges=false] - Tweens Animation to the progress target instead of setting it.
|
71
|
-
Does not affect animations where duration is `0`.
|
72
|
-
*/
|
73
|
-
/**
|
74
|
-
* **Get** or **Set** the tweenChanges option value.
|
75
|
-
* This only affects scenes with a duration. If `tweenChanges` is `true`, the progress update when scrolling will not be immediate, but instead the animation will smoothly animate to the target state.
|
76
|
-
* For a better understanding, try enabling and disabling this option in the [Scene Manipulation Example](../examples/basic/scene_manipulation.html).
|
77
|
-
* @memberof! animation.GSAP#
|
78
|
-
* @method Scene.tweenChanges
|
79
|
-
*
|
80
|
-
* @example
|
81
|
-
* // get the current tweenChanges option
|
82
|
-
* var tweenChanges = scene.tweenChanges();
|
83
|
-
*
|
84
|
-
* // set new tweenChanges option
|
85
|
-
* scene.tweenChanges(true);
|
86
|
-
*
|
87
|
-
* @fires {@link Scene.change}, when used as setter
|
88
|
-
* @param {boolean} [newTweenChanges] - The new tweenChanges setting of the scene.
|
89
|
-
* @returns {boolean} `get` - Current tweenChanges option value.
|
90
|
-
* @returns {Scene} `set` - Parent object for chaining.
|
91
|
-
*/
|
92
|
-
// add option (TODO: DOC (private for dev))
|
93
|
-
ScrollMagic.Scene.addOption("tweenChanges", // name
|
94
|
-
false, // default
|
95
|
-
|
96
|
-
|
97
|
-
function (val) { // validation callback
|
98
|
-
return !!val;
|
99
|
-
});
|
100
|
-
// extend scene
|
101
|
-
ScrollMagic.Scene.extend(function () {
|
102
|
-
var Scene = this,
|
103
|
-
_tween;
|
104
|
-
|
105
|
-
var log = function () {
|
106
|
-
if (Scene._log) { // not available, when main source minified
|
107
|
-
Array.prototype.splice.call(arguments, 1, 0, "(" + NAMESPACE + ")", "->");
|
108
|
-
Scene._log.apply(this, arguments);
|
109
|
-
}
|
110
|
-
};
|
111
|
-
|
112
|
-
// set listeners
|
113
|
-
Scene.on("progress.plugin_gsap", function () {
|
114
|
-
updateTweenProgress();
|
115
|
-
});
|
116
|
-
Scene.on("destroy.plugin_gsap", function (e) {
|
117
|
-
Scene.removeTween(e.reset);
|
118
|
-
});
|
119
|
-
|
120
|
-
/**
|
121
|
-
* Update the tween progress to current position.
|
122
|
-
* @private
|
123
|
-
*/
|
124
|
-
var updateTweenProgress = function () {
|
125
|
-
if (_tween) {
|
126
|
-
var
|
127
|
-
progress = Scene.progress(),
|
128
|
-
state = Scene.state();
|
129
|
-
if (_tween.repeat && _tween.repeat() === -1) {
|
130
|
-
// infinite loop, so not in relation to progress
|
131
|
-
if (state === 'DURING' && _tween.paused()) {
|
132
|
-
_tween.play();
|
133
|
-
} else if (state !== 'DURING' && !_tween.paused()) {
|
134
|
-
_tween.pause();
|
135
|
-
}
|
136
|
-
} else if (progress != _tween.progress()) { // do we even need to update the progress?
|
137
|
-
// no infinite loop - so should we just play or go to a specific point in time?
|
138
|
-
if (Scene.duration() === 0) {
|
139
|
-
// play the animation
|
140
|
-
if (progress > 0) { // play from 0 to 1
|
141
|
-
_tween.play();
|
142
|
-
} else { // play from 1 to 0
|
143
|
-
_tween.reverse();
|
144
|
-
}
|
145
|
-
} else {
|
146
|
-
// go to a specific point in time
|
147
|
-
if (Scene.tweenChanges() && _tween.tweenTo) {
|
148
|
-
// go smooth
|
149
|
-
_tween.tweenTo(progress * _tween.duration());
|
150
|
-
} else {
|
151
|
-
// just hard set it
|
152
|
-
_tween.progress(progress).pause();
|
153
|
-
}
|
154
|
-
}
|
155
|
-
}
|
156
|
-
}
|
157
|
-
};
|
158
|
-
|
159
|
-
/**
|
160
|
-
* Add a tween to the scene.
|
161
|
-
* If you want to add multiple tweens, add them into a GSAP Timeline object and supply it instead (see example below).
|
162
|
-
*
|
163
|
-
* If the scene has a duration, the tween's duration will be projected to the scroll distance of the scene, meaning its progress will be synced to scrollbar movement.
|
164
|
-
* For a scene with a duration of `0`, the tween will be triggered when scrolling forward past the scene's trigger position and reversed, when scrolling back.
|
165
|
-
* To gain better understanding, check out the [Simple Tweening example](../examples/basic/simple_tweening.html).
|
166
|
-
*
|
167
|
-
* Instead of supplying a tween this method can also be used as a shorthand for `TweenMax.to()` (see example below).
|
168
|
-
* @memberof! animation.GSAP#
|
169
|
-
*
|
170
|
-
* @example
|
171
|
-
* // add a single tween directly
|
172
|
-
* scene.setTween(TweenMax.to("obj"), 1, {x: 100});
|
173
|
-
*
|
174
|
-
* // add a single tween via variable
|
175
|
-
* var tween = TweenMax.to("obj"), 1, {x: 100};
|
176
|
-
* scene.setTween(tween);
|
177
|
-
*
|
178
|
-
* // add multiple tweens, wrapped in a timeline.
|
179
|
-
* var timeline = new TimelineMax();
|
180
|
-
* var tween1 = TweenMax.from("obj1", 1, {x: 100});
|
181
|
-
* var tween2 = TweenMax.to("obj2", 1, {y: 100});
|
182
|
-
* timeline
|
183
|
-
* .add(tween1)
|
184
|
-
* .add(tween2);
|
185
|
-
* scene.addTween(timeline);
|
186
|
-
*
|
187
|
-
* // short hand to add a TweenMax.to() tween
|
188
|
-
* scene.setTween("obj3", 0.5, {y: 100});
|
189
|
-
*
|
190
|
-
* // short hand to add a TweenMax.to() tween for 1 second
|
191
|
-
* // this is useful, when the scene has a duration and the tween duration isn't important anyway
|
192
|
-
* scene.setTween("obj3", {y: 100});
|
193
|
-
*
|
194
|
-
* @param {(object|string)} TweenObject - A TweenMax, TweenLite, TimelineMax or TimelineLite object that should be animated in the scene. Can also be a Dom Element or Selector, when using direct tween definition (see examples).
|
195
|
-
* @param {(number|object)} duration - A duration for the tween, or tween parameters. If an object containing parameters are supplied, a default duration of 1 will be used.
|
196
|
-
* @param {object} params - The parameters for the tween
|
197
|
-
* @returns {Scene} Parent object for chaining.
|
198
|
-
*/
|
199
|
-
Scene.setTween = function (TweenObject, duration, params) {
|
200
|
-
var newTween;
|
201
|
-
if (arguments.length > 1) {
|
202
|
-
if (arguments.length < 3) {
|
203
|
-
params = duration;
|
204
|
-
duration = 1;
|
205
|
-
}
|
206
|
-
TweenObject = Tween.to(TweenObject, duration, params);
|
207
|
-
}
|
208
|
-
try {
|
209
|
-
// wrap Tween into a Timeline Object if available to include delay and repeats in the duration and standardize methods.
|
210
|
-
if (Timeline) {
|
211
|
-
newTween = new Timeline({
|
212
|
-
smoothChildTiming: true
|
213
|
-
}).add(TweenObject);
|
214
|
-
} else {
|
215
|
-
newTween = TweenObject;
|
216
|
-
}
|
217
|
-
newTween.pause();
|
218
|
-
} catch (e) {
|
219
|
-
log(1, "ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject");
|
220
|
-
return Scene;
|
221
|
-
}
|
222
|
-
if (_tween) { // kill old tween?
|
223
|
-
Scene.removeTween();
|
224
|
-
}
|
225
|
-
_tween = newTween;
|
226
|
-
|
227
|
-
// some properties need to be transferred it to the wrapper, otherwise they would get lost.
|
228
|
-
if (TweenObject.repeat && TweenObject.repeat() === -1) { // TweenMax or TimelineMax Object?
|
229
|
-
_tween.repeat(-1);
|
230
|
-
_tween.yoyo(TweenObject.yoyo());
|
231
|
-
}
|
232
|
-
// Some tween validations and debugging helpers
|
233
|
-
if (Scene.tweenChanges() && !_tween.tweenTo) {
|
234
|
-
log(2, "WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic.");
|
235
|
-
}
|
236
|
-
|
237
|
-
// check if there are position tweens defined for the trigger and warn about it :)
|
238
|
-
if (_tween && Scene.controller() && Scene.triggerElement() && Scene.loglevel() >= 2) { // controller is needed to know scroll direction.
|
239
|
-
var
|
240
|
-
triggerTweens = Tween.getTweensOf(Scene.triggerElement()),
|
241
|
-
vertical = Scene.controller().info("vertical");
|
242
|
-
triggerTweens.forEach(function (value, index) {
|
243
|
-
var
|
244
|
-
tweenvars = value.vars.css || value.vars,
|
245
|
-
condition = vertical ? (tweenvars.top !== undefined || tweenvars.bottom !== undefined) : (tweenvars.left !== undefined || tweenvars.right !== undefined);
|
246
|
-
if (condition) {
|
247
|
-
log(2, "WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!");
|
248
|
-
return false;
|
249
|
-
}
|
250
|
-
});
|
251
|
-
}
|
252
|
-
|
253
|
-
// warn about tween overwrites, when an element is tweened multiple times
|
254
|
-
if (parseFloat(TweenLite.version) >= 1.14) { // onOverwrite only present since GSAP v1.14.0
|
255
|
-
var
|
256
|
-
list = _tween.getChildren ? _tween.getChildren(true, true, false) : [_tween],
|
257
|
-
// get all nested tween objects
|
258
|
-
newCallback = function () {
|
259
|
-
log(2, "WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another");
|
260
|
-
};
|
261
|
-
for (var i = 0, thisTween, oldCallback; i < list.length; i++) { /*jshint loopfunc: true */
|
262
|
-
thisTween = list[i];
|
263
|
-
if (oldCallback !== newCallback) { // if tweens is added more than once
|
264
|
-
oldCallback = thisTween.vars.onOverwrite;
|
265
|
-
thisTween.vars.onOverwrite = function () {
|
266
|
-
if (oldCallback) {
|
267
|
-
oldCallback.apply(this, arguments);
|
268
|
-
}
|
269
|
-
newCallback.apply(this, arguments);
|
270
|
-
};
|
271
|
-
}
|
272
|
-
}
|
273
|
-
}
|
274
|
-
log(3, "added tween");
|
275
|
-
|
276
|
-
updateTweenProgress();
|
277
|
-
return Scene;
|
278
|
-
};
|
279
|
-
|
280
|
-
/**
|
281
|
-
* Remove the tween from the scene.
|
282
|
-
* This will terminate the control of the Scene over the tween.
|
283
|
-
*
|
284
|
-
* Using the reset option you can decide if the tween should remain in the current state or be rewound to set the target elements back to the state they were in before the tween was added to the scene.
|
285
|
-
* @memberof! animation.GSAP#
|
286
|
-
*
|
287
|
-
* @example
|
288
|
-
* // remove the tween from the scene without resetting it
|
289
|
-
* scene.removeTween();
|
290
|
-
*
|
291
|
-
* // remove the tween from the scene and reset it to initial position
|
292
|
-
* scene.removeTween(true);
|
293
|
-
*
|
294
|
-
* @param {boolean} [reset=false] - If `true` the tween will be reset to its initial values.
|
295
|
-
* @returns {Scene} Parent object for chaining.
|
296
|
-
*/
|
297
|
-
Scene.removeTween = function (reset) {
|
298
|
-
if (_tween) {
|
299
|
-
if (reset) {
|
300
|
-
_tween.progress(0).pause();
|
301
|
-
}
|
302
|
-
_tween.kill();
|
303
|
-
_tween = undefined;
|
304
|
-
log(3, "removed tween (reset: " + (reset ? "true" : "false") + ")");
|
305
|
-
}
|
306
|
-
return Scene;
|
307
|
-
};
|
308
|
-
|
309
|
-
});
|
310
|
-
}));
|