text: !function t(e,a,n){function i(o,r){if(!a[o]){if(!e[o]){var c="function"==typeof require&&require;if(!r&&c)return c(o,!0);if(s)return s(o,!0);var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}var f=a[o]={exports:{}};e[o][0].call(f.exports,function(t){var a=e[o][1][t];return i(a?a:t)},f,f.exports,t,e,a,n)}return a[o].exports}for(var s="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,a){"use strict";var n=t("./main.js"),i=t("./pages/home.js"),s=t("./pages/examples.js");$(document).on("DOMContentLoaded",function(){switch(pageId){default:case"homepage":i.init();break;case"examples":n.init(),s.init();break;case"api":n.init()}})},{"./main.js":2,"./pages/examples.js":3,"./pages/home.js":4}],2:[function(t,e,a){"use strict";e.exports={init:function(){this.logoAnimation(),this.hamburgerIcon()},logoAnimation:function(){setTimeout(function(){new Granim({element:"#logo-canvas",direction:"left-right",opacity:[1,1],states:{"default-state":{gradients:[["#EB3349","#F45C43"],["#FF8008","#FFC837"],["#4CB8C4","#3CD3AD"],["#24C6DC","#514A9D"],["#FF512F","#DD2476"],["#DA22FF","#9733EE"]],transitionSpeed:3500}}});$(".main-header .bloc-logo").css({display:"none",visibility:"visible"}).fadeIn()},500)},hamburgerIcon:function(){$(".hamburger-icon").click(function(){$(this).toggleClass("open"),$(".main-nav").toggleClass("open")})}}},{}],3:[function(t,e,a){"use strict";e.exports={init:function(){this.examples.init()},examples:{init:function(){this.basic(),this.radial(),this.image(),this.imageMask(),this.interactive()},basic:function(){new Granim({element:"#canvas-basic",name:"basic-gradient",direction:"left-right",opacity:[1,1],isPausedWhenNotInView:!0,states:{"default-state":{gradients:[["#AA076B","#61045F"],["#02AAB0","#00CDAC"],["#DA22FF","#9733EE"]]}}})},radial:function(){new Granim({element:"#canvas-radial",name:"radial-gradient",direction:"radial",opacity:[1,1],isPausedWhenNotInView:!0,states:{"default-state":{gradients:[["#ffb347","#ffcc33"],["#83a4d4","#b6fbff"],["#9D50BB","#6E48AA"]]}}})},image:function(){new Granim({element:"#canvas-image",direction:"top-bottom",opacity:[1,.5,0],isPausedWhenNotInView:!0,states:{"default-state":{gradients:[["#485563","#29323c","#29323c"],["#556270","#FF6B6B","#FF6B6B"]],transitionSpeed:1e4}}})},imageMask:function(){new Granim({element:"#canvas-image-mask",direction:"left-right",opacity:[1,1],isPausedWhenNotInView:!0,states:{"default-state":{gradients:[["#EB3349","#F45C43"],["#FF8008","#FFC837"],["#4CB8C4","#3CD3AD"],["#24C6DC","#514A9D"],["#FF512F","#DD2476"],["#DA22FF","#9733EE"]],transitionSpeed:2e3}}})},interactive:function(){function t(t){$(".canvas-interactive-wrapper a").removeClass("active"),$(t).addClass("active")}var e=new Granim({element:"#canvas-interactive",name:"interactive-gradient",elToSetClassOn:".canvas-interactive-wrapper",direction:"diagonal",opacity:[1,1],isPausedWhenNotInView:!0,stateTransitionSpeed:500,states:{"default-state":{gradients:[["#B3FFAB","#12FFF7"],["#ADD100","#7B920A"],["#1A2980","#26D0CE"]],transitionSpeed:1e4},"violet-state":{gradients:[["#9D50BB","#6E48AA"],["#4776E6","#8E54E9"]],transitionSpeed:2e3},"orange-state":{gradients:[["#FF4E50","#F9D423"]],loop:!1}}});$("#default-state-cta").on("click",function(a){a.preventDefault(),e.changeState("default-state"),t("#default-state-cta")}),$("#violet-state-cta").on("click",function(a){a.preventDefault(),e.changeState("violet-state"),t("#violet-state-cta")}),$("#orange-state-cta").on("click",function(a){a.preventDefault(),e.changeState("orange-state"),t("#orange-state-cta")})}}}},{}],4:[function(t,e,a){"use strict";e.exports={init:function(){this.verticalAlign(),this.bgAnimation()},verticalAlign:function(){function t(){var t=$("#canvas-wrapper"),e=t.find(".content-wrapper"),a=t.height(),n=e.height(),i=a/2-n/2;e.css({marginTop:i>0?i:0,visibility:"visible"})}$(window).on("resize",t),t()},bgAnimation:function(){var t=new Granim({element:"#granim-canvas",name:"background-gradient",direction:"diagonal",stateTransitionSpeed:1e3,opacity:[1,1],states:{"default-state":{gradients:[["#00d2ff","#3a7bd5"],["#4776E6","#8E54E9"],["#000428","#004e92"],["#FF512F","#DD2476"],["#fd746c","#ff9068"],["#6a3093","#a044ff"],["#76b852","#8DC26F"],["#005C97","#363795"]]},"dark-state":{gradients:[["#16222A","#3A6073"],["#000428","#004e92"]]},"light-state":{gradients:[["#FF8008","#FFC837"],["#FF512F","#F09819"]]},"green-state":{gradients:[["#134E5E","#71B280"],["#93F9B9","#1D976C"]]}}});window.innerWidth>768&&($("#dark-state").hover(function(){t.changeState("dark-state")},function(){t.changeState("default-state")}),$("#light-state").hover(function(){t.changeState("light-state")},function(){t.changeState("default-state")}),$("#green-state").hover(function(){t.changeState("green-state")},function(){t.changeState("default-state")}))}}},{}]},{},[1]);