This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var $header = $(".header-area"), | |
| $clone = $header.before($header.clone().addClass("fixedTop")); | |
| $(window).on("scroll", function() { | |
| var fromTop = $(window).scrollTop(); | |
| $("body").toggleClass("down", (fromTop > 300)); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .hide {opacity: 0;} | |
| .fade-in {opacity: 0; -webkit-transition: opacity .8s linear; transition: opacity .8s linear;} | |
| .fade-in.in-view {opacity: 1;} | |
| .animate-from-bottom{opacity: 0; -webkit-transform: translateY(100px); -moz-transform: translateY(100px); transform: translateY(100px); -webkit-transform: translate3d(0,100px,0); transform: translate3d(0,100px,0); -webkit-transition: -webkit-transform .8s cubic-bezier(.165,.84,.44,1), opacity .8s linear; transition: transform .8s cubic-bezier(.165,.84,.44,1), opacity .8s linear;} | |
| .animate-from-bottom.in-view{opacity: 1; -webkit-transform: translateX(0px); -moz-transform: translateX(0px); transform: translateX(0px); -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); -webkit-transition: -webkit-transform .8s cubic-bezier(.165,.84,.44,1) , opacity .8s linear ; transition: transform .8s cubic-bezier(.165,.84,.44,1), opacity .8s linear;} | |
| .animate-from-right{opacity: 0; -webkit-transform: translateX(50px); -moz-transform: translateY(50px); transform: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| height: 2000px; | |
| background: #f1f1f1; | |
| } | |
| #mySVG { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> | |
| <script type="text/javascript" src="scripts/jquery-1.12.4.min.js"></script> | |
| <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mapHeight = $(".cycle-map img").height(); | |
| $(".cycle-map-inner-wrap").height(mapHeight); | |
| function heightResize(){ | |
| mapHeight = $(".cycle-map img").height(); | |
| $(".cycle-map-inner-wrap").height(mapHeight); | |
| } | |
| $(window).on("resize", heightResize); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ($(window).width() > 767) { | |
| lasPos = 0 | |
| var getHeaderHeight = $('.header-section').outerHeight(); | |
| $(window).scroll(function () { | |
| var wScroll = $(window).scrollTop(); | |
| $('.header-section').css('top', '-' + getHeaderHeight + 'px') | |
| if (wScroll > 250) { | |
| $('.header-section').addClass('is-active').css('top', 0); | |
| if (lasPos > wScroll) { | |
| $('.header-section').css('top', 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| See here >>> http://manos.malihu.gr/jquery-custom-content-scroller/ | |
| Custom scroll bar with custom scripting see here >>> http://www.jankoatwarpspeed.com/reinventing-a-drop-down-with-css-and-jquery/ | |
| <!-- html markut --> | |
| <div class="selectrick-wraper" id="selectrick-wraper"> | |
| <span><img src="images/rating-5.png"></span> | |
| <ul> | |
| <li class="five-star"><img src="images/rating-5.png"></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This function for scroll from bottom animation | |
| if ($(window).width() > 767){ | |
| var $animation_elements = $('.animate-from-bottom'); | |
| var $window = $(window); | |
| function check_if_in_view() { | |
| var window_height = $window.height(); | |
| var window_top_position = $window.scrollTop(); | |
| var window_bottom_position = (window_top_position + window_height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.book-consultation em a').html(function(index, curHTML) { // This function for select last word | |
| var text = curHTML.split(/[\s-]/), | |
| newtext = '<span class="last-word">' + text.pop() + '</span>'; | |
| return text.join(' ').concat(' ' + newtext); | |
| }); | |
| // Another way to select First word and last word ========================= | |
| $("#lastWord").html(function(){ // Class or id can be use | |
| var text = $("#lastWord").text().split(" "); // All text convert to array. | |
| var last = text.pop(); // Select last wrod. |