PATH:
home
/
letacommog
/
renovation-antibes
/
wp-content
/
plugins
/
elementor-extras
/
assets
/
lib
/
unfold
!function(n,o,t,e){n.unfold=function(e,s){var a={scope:n(o),text_closed:"Read more",text_open:"Read less",isolate:!0,duration_unfold:.5,duration_fold:.5,easing_unfold:"easeInOut",easing_fold:"easeInOut",animation_unfold:"Power4",animation_fold:"Power4",steps_unfold:10,steps_fold:10,slow_unfold:10,slow_fold:10,visible_lines:!1,visible_percentage:100},l=this;l.opts={};var d=null,u=null,f=n(e),r=f.find(".elementor-unfold__content"),p=f.find(".elementor-unfold__mask"),c=f.find(".elementor-unfold__separator"),_=f.find(".elementor-unfold__trigger .ee-button"),m=_.find(".ee-button-text"),g=0,h=!1,v=null,w=0,b=!1;l.init=function(){l.opts=n.extend({},a,s),l._construct()},l._construct=function(){d=l.opts.scope,u=n("body"),l.setup(),l.events()},l.hexToRgba=function(n,o){var t=parseInt(n.slice(1,3),16),e=parseInt(n.slice(3,5),16),i=parseInt(n.slice(5,7),16);return o?"rgba("+t+", "+e+", "+i+", "+o+")":"rgb("+t+", "+e+", "+i+")"},l.setup=function(){l.update()},l.events=function(){d.on("resize",function(){l.setup()}),_.on("click",function(){!0===b?l.close():l.open()})},l.onScroll=function(){g=d.scrollTop(),l.requestTick()},l.requestTick=function(){h||(v=requestAnimationFrame(l.update)),h=!0},l.getLineHeight=function(n){var e=o.getComputedStyle(n),i=null,s=t.createElement(n.nodeName);return s.setAttribute("style","margin:0px;padding:0px;font-family:"+e.fontFamily+";font-size:"+e.fontSize),s.innerHTML="test",s=n.parentNode.appendChild(s),i=s.clientHeight,s.parentNode.removeChild(s),i},l.update=function(){var t=r.find("> *");if(!1!==l.opts.visible_lines){var e=0;w=0,t.each(function(t){if(e<l.opts.visible_lines){var s=l.getLineHeight(this),a=n(this).height()/s,d=o.getComputedStyle(this);if(a>1){var u=0;for(i=1;i<=a;i++)e<l.opts.visible_lines&&(w+=s,e++,u++);u===a&&(w+=parseInt(d.marginTop)+parseInt(d.marginBottom))}else w+=n(this).outerHeight(!0),e++}})}else w=l.opts.visible_percentage*r.outerHeight(!0)/100;b=!1,p.css({height:w})},l.destroy=function(){l.clearProps(),cancelAnimationFrame(v),d.off("scroll",l.onScroll),$item.removeData("unfold")},l.open=function(){var n=new TimelineLite({onComplete:function(){b=!0,m.html(l.opts.text_open)}}),o=d[0][l.opts.animation_unfold];"SlowMo"===l.opts.animation_unfold?o=o.config(l.opts.slow_unfold,.7,!1):"SteppedEase"===l.opts.animation_unfold?o=o.config(l.opts.steps_unfold):l.opts.easing_unfold&&(o=o[l.opts.easing_unfold]),n.add("open").to(p,l.opts.duration_unfold,{height:r.outerHeight(),ease:o},"open").to(c,l.opts.duration_unfold/3,{autoAlpha:0,ease:Power1.easeIn},"-=0.1")},l.close=function(){var n=new TimelineLite({onComplete:function(){b=!1,m.html(l.opts.text_closed)}});_animation=d[0][l.opts.animation_fold],"SlowMo"===l.opts.animation_fold?_animation=_animation.config(l.opts.slow_fold,.7,!1):"SteppedEase"===l.opts.animation_fold?_animation=_animation.config(l.opts.steps_fold):l.opts.easing_fold&&(_animation=_animation[l.opts.easing_fold]),n.add("close").to(c,l.opts.duration_fold/3,{autoAlpha:1,ease:Power1.easeOut},"close").to(p,l.opts.duration_fold,{height:w,ease:_animation},"-=0.1")},l.init()},n.fn.unfold=function(o){return this.each(function(){if(n.fn.unfold.destroy=function(){void 0!==t&&(n(this).data("unfold").destroy(),n(this).removeData("unfold"))},void 0===n(this).data("unfold")){var t=new n.unfold(this,o);n(this).data("unfold",t)}})}}(jQuery,window,document);
[+]
..
[-] unfold.min.js
[edit]
[-] unfold.js
[edit]