Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.04 KB | None | 0 0
  1. ;(function($){
  2. $(function(){
  3.  
  4. // Begin input common focus and blur for value.
  5. var input = $('input:text, input:password,input[type="email"],input[type="tel"],input[type="number"],input[type="search"], textarea');
  6.  
  7. $(input).each(function () {
  8. var inputText = $(this).attr('placeholder')
  9. $(this).focus(function () {
  10. if ($(this).val().length === 0) {
  11. $(this).attr('placeholder', '');
  12. $('.input-wrap').removeClass('value-added')
  13. }
  14. }).blur(function () {
  15. if ($(this).val().length === 0) {
  16. $(this).attr('placeholder', inputText);
  17. $(this).parent().removeClass('active');
  18. } else if ($(this).val().length > 0) {
  19. $(this).parent().addClass('active');
  20. }
  21. })
  22. });
  23.  
  24. $('div.input-wrap input').keyup(function(){
  25. $(this).parents(".input-wrap").addClass('value-added')
  26. })
  27.  
  28.  
  29. /* $('div.text-field input').blur(function(){
  30. if(!this.value){this.value=this.defaultValue;}
  31. if(this.value==this.defaultValue){
  32. $('div.header-search').removeClass('value-added')
  33. }
  34. });*/
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. // Ends input common focus and blur for value.
  44.  
  45. // Phone nav click function
  46. $('#phone-nav').click(function(){
  47. $("body").toggleClass("navShown");
  48. $(".nav-wrap").slideToggle();
  49. $(".main-nav ul li.hasNav").find("> ul:visible").slideUp()
  50. });
  51.  
  52.  
  53. if($(".top-bg").length){
  54. $("body").addClass("topShown")
  55.  
  56. $(window).on("scroll", function () {
  57. var fromTop = $(window).scrollTop();
  58. {
  59.  
  60. $("header").addClass("blkheader")
  61. }
  62.  
  63. });
  64. }
  65.  
  66. if($(".bg-grey").length){
  67. $("header").addClass("greyheader");
  68. $("body").addClass("greyBody");
  69. }
  70.  
  71.  
  72.  
  73. $(".main-nav ul li").find(">ul").parents("li").addClass("hasNav")
  74.  
  75. if($(window).width() < 992){
  76. $(".main-nav ul li.hasNav > a").bind('click', 'touchend', function(e){
  77. e.preventDefault();
  78. $(".main-nav ul li.hasNav").find("> ul:visible").slideUp()
  79. $(".main-nav ul li.hasNav").removeClass("active")
  80. if($(this).parent().find("> ul:visible").length){
  81. $(this).removeClass("active")
  82. $(this).parent().find("> ul").slideUp()
  83. }
  84. else{
  85. $(this).addClass("active")
  86. $(this).parent().find("> ul").slideDown()
  87. }
  88. });
  89. }
  90.  
  91. if($('select.stylled-select').length){
  92. $("select.stylled-select").selectric()
  93. }
  94.  
  95.  
  96. if ($(window).width() > 768) {
  97. var $header = $("header"),
  98. $clone = $header.addClass("fixedBorder"),
  99. $fixedHeader = $('.fixedBorder'),
  100. $headerHeight = $fixedHeader.outerHeight(),
  101. lastPos = 0;
  102. $(window).resize(function () {
  103. $headerHeight = $fixedHeader.outerHeight();
  104. });
  105.  
  106. $(window).on("scroll", function () {
  107. $fixedHeader.removeClass('onSizing');
  108. var fromTop = $(window).scrollTop();
  109. if (fromTop > $headerHeight ) {
  110.  
  111. $fixedHeader.css('top', '0');
  112. $("body").addClass("started");
  113.  
  114. if (fromTop > lastPos) {
  115. $fixedHeader.css({
  116. top: 0
  117. });
  118. }
  119. lastPos = fromTop;
  120.  
  121.  
  122. } else {
  123. $fixedHeader.css('top', '0');
  124. $("body").removeClass("started");
  125.  
  126. }
  127. });
  128.  
  129.  
  130.  
  131. }
  132.  
  133.  
  134. if($("#hero-slider-wrap").length){
  135. $("#hero-slider-wrap").slick({
  136. infinite: true,
  137. arrows: true,
  138. dots: false,
  139. autoplay: false,
  140. speed: 1000,
  141. fade:true,
  142. });
  143.  
  144. //ticking machine
  145. var percentTime;
  146. var tick;
  147. var time = 1;
  148. var progressBarIndex = 0;
  149.  
  150. $('.progressBarContainer .progressBar').each(function(index) {
  151. var progress = "<div class='inProgress inProgress" + index + "'></div>";
  152. $(this).html(progress);
  153. //$(this).parent().addClass("active");
  154. });
  155.  
  156. function startProgressbar() {
  157. resetProgressbar();
  158. percentTime = 0;
  159. tick = setInterval(interval, 10);
  160. $(".slider-controler ul li").removeClass("active")
  161. }
  162.  
  163. function interval() {
  164. if (($('#hero-slider-wrap .slick-track div[data-slick-index="' + progressBarIndex + '"]').attr("aria-hidden")) === "true") {
  165. progressBarIndex = $('#hero-slider-wrap .slick-track div[aria-hidden="false"]').data("slickIndex");
  166. startProgressbar();
  167. } else {
  168. percentTime += 1 / (time + 5);
  169. $('.inProgress' + progressBarIndex).css({
  170. width: percentTime + "%"
  171. });
  172. $('.inProgress' + progressBarIndex).parents("li").addClass("active")
  173. if (percentTime >= 100) {
  174. $('#hero-slider-wrap').slick('slickNext');
  175. progressBarIndex++;
  176. if (progressBarIndex > 2) {
  177. progressBarIndex = 0;
  178. }
  179. startProgressbar();
  180. }
  181. }
  182. }
  183.  
  184. function resetProgressbar() {
  185. $('.inProgress').css({
  186. width: 0 + '%'
  187. });
  188. clearInterval(tick);
  189. }
  190. startProgressbar();
  191. // End ticking machine
  192.  
  193. $('.progressBarContainer ul li').click(function () {
  194. clearInterval(tick);
  195. var goToThisIndex = $(this).find("span").data("slickIndex");
  196. $('#hero-slider-wrap').slick('slickGoTo', goToThisIndex, false);
  197. startProgressbar();
  198. });
  199. }
  200.  
  201. if($(window).width() > 767){
  202. if($("#timeline").length){
  203.  
  204. $('.timeline-controller ul li').eq(0).addClass('active');
  205.  
  206. $("#timeline").slick({
  207. infinite: true,
  208. arrows: false,
  209. dots: false,
  210. autoplay: false,
  211. centerMode:false,
  212. draggable:true,
  213. speed: 800,
  214. slidesToScroll: 1,
  215. slidesToShow: 3,
  216. responsive: [
  217.  
  218. {
  219. breakpoint: 600,
  220. settings: {
  221. slidesToShow: 1,
  222. slidesToScroll: 1,
  223. initialSlide: 1
  224. }
  225. },
  226. {
  227. breakpoint: 480,
  228. settings: {
  229. slidesToShow: 1,
  230. slidesToScroll: 1
  231. }
  232. }
  233.  
  234. ]
  235. });
  236.  
  237. $('#timeline').on('afterChange', function (event, slick, currentSlide, nextSlide) {
  238. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').removeClass('active');
  239. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').eq(currentSlide).addClass('active');
  240. $(this).find(".slick-slide").eq(nextSlide).addClass('got');
  241. menuActiveState();
  242. });
  243.  
  244. $('.timeline-details-section').each(function (i) {
  245. var item = $(this).find('.timeline-controller ul li');
  246. item.each(function (i) {
  247. $(this).click(function () {
  248. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').removeClass('active');
  249. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').eq(i).addClass('active');
  250. $(this).parents('.timeline-details-section').find('#timeline').slick('slickGoTo', (i + 1) - 1);
  251. })
  252. })
  253. });
  254. }
  255.  
  256. function menuActiveState() {
  257. var $line = $('.marker'),
  258. $nav = $('.timeline-controller'),
  259. timerNav,
  260. animLine = function ($target) {
  261. var offsetConteneur = $nav.offset().left,
  262. largeur = $target.outerWidth(),
  263. posX1 = $target.offset().left - offsetConteneur,
  264. posX2 = $target.offset().left + largeur - offsetConteneur;
  265. TweenMax.to($line, 0.8, {css:{left: posX1}, ease:Power4.easeOut});
  266. };
  267.  
  268. if ($('.timeline-controller ul').length) {
  269. setTimeout(
  270. function () {
  271. animLine($nav.find('.active'));
  272. }, 500
  273. );
  274. $nav.find('li').click(function (event) {
  275. clearTimeout(timerNav);
  276. animLine($(this));
  277. })
  278. }
  279.  
  280. }
  281.  
  282. menuActiveState();
  283. }
  284.  
  285. if($(window).width() < 768){
  286. $('#timeline').on('afterChange', function (event, slick, currentSlide, nextSlide) {
  287. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').removeClass('active');
  288. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').eq(currentSlide).addClass('active');
  289. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').eq(1).addClass('shown');
  290. });
  291.  
  292. $('.timeline-details-section').each(function (i) {
  293. var item = $(this).find('.timeline-controller ul li');
  294. item.each(function (i) {
  295. $(this).click(function () {
  296. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').removeClass('active');
  297. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').eq(i).addClass('active');
  298. $(this).parents('.timeline-details-section').find('.timeline-controller ul li').eq(1).removeClass('shown');
  299. $(this).parents('.timeline-details-section').find('#timeline').slick('slickGoTo', (i + 1) - 1);
  300. })
  301. })
  302. });
  303. $("#timeline").slick({
  304. infinite: true,
  305. arrows: false,
  306. dots: false,
  307. autoplay: false,
  308. centerMode:true,
  309. speed: 800,
  310. centerPadding:'0',
  311. draggable:false,
  312. slidesToScroll: 1,
  313. slidesToShow: 1,
  314. asNavFor:"#timeline-controlled"
  315.  
  316. });
  317.  
  318. var $progressBar = $('.progressed');
  319. $("#timeline-controlled").slick({
  320. slidesToShow: 1,
  321. slidesToScroll: 1,
  322. draggable:false,
  323. arrows:true,
  324. speed: 800,
  325. infinite:true,
  326. asNavFor: "#timeline"
  327.  
  328. }).on('beforeChange', function (event, slick, currentSlide, nextSlide) {
  329. var calc = ((nextSlide) / (slick.slideCount - 1)) * 100;
  330.  
  331. $progressBar
  332. .css('background-size', calc + '% 100%')
  333. .attr('aria-valuenow', calc);
  334. });
  335.  
  336. }
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343. // function workCarousel(){
  344. // //var slideCount = null;
  345. // var totalSlideNumber = 0;
  346. // $('.carousel-wrap .propertise-item').each(function(i){
  347. // totalSlideNumber = i + 1;
  348. // totalSlideNumber < 10 ? totalSlideNumber = '0' + totalSlideNumber : totalSlideNumber;
  349.  
  350. // });
  351. // $('.counter-info .current' ).text('01');
  352. // }
  353.  
  354. // workCarousel();
  355.  
  356.  
  357.  
  358. if($("#top-carousel").length){
  359. var totalSlide = $('#top-carousel .top-carousel-item').length;
  360. $('.top-carousel span.total').text(totalSlide);
  361.  
  362. $('#top-carousel').slick({
  363. slidesToShow: 1,
  364. slidesToScroll: 1,
  365. dots: false,
  366. speed: 400,
  367. infinite: true,
  368. arrows: true,
  369. });
  370. }
  371.  
  372.  
  373. $('#top-carousel').on('beforeChange', function(event, slick, currentSlide, nextSlide) {
  374. var getNumber = nextSlide + 1;
  375. getNumber < 10 ? getNumber = '0' + getNumber : getNumber;
  376. $('.counter-info .current' ).text(getNumber);
  377. });
  378.  
  379. $('.Next').each(function(){
  380. var $_this = $(this);
  381. $_this.on('click', function(){
  382. $_this.parents('.carousel-item-wrap').find('.slick-next').trigger('click');
  383. });
  384. })
  385.  
  386.  
  387. $('.Previous').each(function(){
  388. var $_this = $(this);
  389. $_this.on('click', function(){
  390. $_this.parents('.carousel-item-wrap').find('.slick-prev').trigger('click');
  391. })
  392. })
  393.  
  394.  
  395. $('.Next').each(function(){
  396. $('.Next').on('click', function(){
  397. $(this).parents('.top-carousel').find('.slick-next').trigger('click');
  398. })
  399. })
  400.  
  401.  
  402. $('.Previous').each(function(){
  403. $('.Previous').on('click', function(){
  404. $(this).parents('.top-carousel').find('.slick-prev').trigger('click');
  405. })
  406. })
  407.  
  408.  
  409. if($(window).width () < 768){
  410. $('#propertise-wrap').slick({
  411. slidesToShow: 1,
  412. slidesToScroll: 1,
  413. dots: false,
  414. speed: 400,
  415. arrows:true,
  416. centerMode:true,
  417. infinite: true,
  418. });
  419.  
  420. $(window).on('resize', function () {
  421. $('#propertise-wrap').slick('resize');
  422. });
  423. }
  424.  
  425.  
  426. function Fullcarousel(){
  427. //var slideCount = null;
  428. var totalNumber = 0;
  429. $('.carousel-wrap .propertise-item').each(function(i){
  430. totalNumber = i + 1;
  431. totalNumber < 10 ? totalNumber = '0' + totalNumber : totalNumber;
  432.  
  433. });
  434. $('.counter-info .current' ).text('01');
  435. }
  436.  
  437. Fullcarousel();
  438.  
  439.  
  440. if($('.carousel-wrap').length){
  441. $('.carousel-wrap').each(function(){
  442. var _this = $(this);
  443. var totalNumber = _this.find('.propertise-item').length;
  444. var setZero = totalNumber < 10 ? totalNumber = '0' + totalNumber : totalNumber;
  445. _this.parents(".carousel-item-wrap").find('.counter-info .total' ).text(setZero);
  446.  
  447. _this.on("init", function(event, slick, slideIndex){
  448. var currentIndex = _this.parents(".carousel-item-wrap").find('.slick-current').attr('data-slick-index');
  449. if(currentIndex == 0){
  450. _this.parents(".carousel-item-wrap").find(".counter-info .Previous").addClass("disable");
  451. }else{
  452. _this.parents(".carousel-item-wrap").find(".counter-info .Previous").removeClass("disable");
  453. }
  454. });
  455.  
  456. _this.slick({
  457. slidesToShow:3,
  458. slidesToScroll: 1,
  459. dots: false,
  460. speed: 400,
  461. infinite: true,
  462. arrows:true,
  463. variableWidth: true,
  464. responsive: [
  465.  
  466. {
  467. breakpoint: 1025,
  468. settings: {
  469. slidesToShow:2,
  470. slidesToScroll: 1,
  471. variableWidth: false
  472. }
  473. },
  474.  
  475. {
  476. breakpoint: 600,
  477. settings: {
  478. slidesToShow: 1,
  479. slidesToScroll: 1
  480.  
  481. }
  482. },
  483. {
  484. breakpoint: 480,
  485. settings: {
  486. slidesToShow: 1,
  487. slidesToScroll: 1,
  488. variableWidth: false
  489. }
  490. }
  491.  
  492. ]
  493.  
  494. }).on('beforeChange', function(event, slick, currentSlide, nextSlide, slideIndex) {
  495. var getNumberCaruosel = nextSlide + 1;
  496. getNumberCaruosel < 10 ? getNumberCaruosel = '0' + getNumberCaruosel : getNumberCaruosel;
  497. _this.parents(".carousel-item-wrap").find('.counter-info .current' ).text(getNumberCaruosel);
  498.  
  499. }).on('afterChange', function(event, slick, currentSlide, nextSlide, slideIndex) {
  500. var currentIndex = _this.parents(".carousel-item-wrap").find('.slick-current').attr('data-slick-index');
  501. _this.parents(".carousel-item-wrap").find(".counter-info .Previous").removeClass("disable");
  502. _this.parents(".carousel-item-wrap").find(".counter-info .Next").removeClass("disable");
  503.  
  504. if(currentIndex == totalNumber - 1){
  505. _this.parents(".carousel-item-wrap").find(".counter-info .Next").addClass("disable");
  506. _this.parents(".carousel-item-wrap").find(".counter-info .Previous").removeClass("disable");
  507. }
  508.  
  509. if(currentIndex == 0){
  510. _this.parents(".carousel-item-wrap").find(".counter-info .Previous").addClass("disable");
  511. }else{
  512. _this.parents(".carousel-item-wrap").find(".counter-info .Previous").removeClass("disable");
  513. }
  514.  
  515. });
  516.  
  517. // Hides navigation when less than 3
  518.  
  519. // if($(window).width() > 1024){
  520. // if(totalNumber <= 3){
  521. // $(".counter-info-wrap").hide();
  522. // }else{
  523. // $(".counter-info-wrap").show();
  524. // }
  525. // }
  526.  
  527. })
  528.  
  529.  
  530. }
  531.  
  532. // offset scroll on blog
  533.  
  534. setTimeout(function() {
  535. if (location.hash) {
  536. /* we need to scroll to the top of the window first, because the browser will always jump to the anchor first before JavaScript is ready, thanks Stack Overflow: http://stackoverflow.com/a/3659116 */
  537. window.scrollTo(0, 0);
  538. target = location.hash.split('#');
  539. smoothScrollTo($('#'+target[1]));
  540. }
  541. }, 1);
  542.  
  543. // taken from: https://css-tricks.com/snippets/jquery/smooth-scrolling/
  544. $('a[href*=\\#]:not([href=\\#])').click(function() {
  545. if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
  546. smoothScrollTo($(this.hash));
  547. return false;
  548. }
  549. });
  550.  
  551. function smoothScrollTo(target) {
  552. target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
  553.  
  554. if (target.length) {
  555. $('html,body').animate({
  556. scrollTop: target.offset().top - 150
  557. }, 1000);
  558. }
  559. }
  560.  
  561.  
  562. var $animation_elements = $('.animate');
  563. var $window = $(window);
  564.  
  565. function check_if_in_view() {
  566. var window_height = $window.height();
  567. var window_top_position = $window.scrollTop();
  568. var window_bottom_position = (window_top_position + window_height);
  569.  
  570. $.each($animation_elements, function () {
  571. var $element = $(this);
  572. var element_height = $element.outerHeight();
  573. var element_top_position = $element.offset().top;
  574. var element_bottom_position = (element_top_position + element_height);
  575.  
  576. //check to see if this current container is within viewport
  577. if (element_top_position <= window_bottom_position) {
  578. $element.addClass('in-view');
  579. } else {
  580. $element.removeClass('in-view');
  581. }
  582. });
  583. }
  584.  
  585. $window.on('scroll resize', check_if_in_view);
  586. $window.trigger('scroll');
  587.  
  588. // Begin input common focus and blur for value.
  589. $('input, textarea').keyup(function () {
  590. $(this).parents(".input-wrap").addClass('populated');
  591. })
  592.  
  593.  
  594. $('input, textarea').blur(function (){
  595. if (!this.value){
  596. this.value = this.defaultValue;
  597. }
  598. if (this.value == this.defaultValue){
  599. $(this).parents(".input-wrap").removeClass('populated');
  600. }
  601. });
  602.  
  603. })// End ready function.
  604.  
  605.  
  606.  
  607. })(jQuery)
  608.  
  609. //Quad, Cubic, Quart, Quint, Sine, Expo, Circ, Elastic, Back, Bounce
  610. jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;if(!g)g=e*.3*1.5;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);if(b<1)return-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;if((b/=e/2)<1)return d/2*b*b*(((f*=1.525)+1)*b-f)+c;return d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){if((b/=e)<1/2.75){return d*7.5625*b*b+c}else if(b<2/2.75){return d*(7.5625*(b-=1.5/2.75)*b+.75)+c}else if(b<2.5/2.75){return d*(7.5625*(b-=2.25/2.75)*b+.9375)+c}else{return d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}},easeInOutBounce:function(a,b,c,d,e){if(b<e/2)return jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c;return jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement