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
| .mfp-fade.mfp-bg { | |
| opacity: 0; | |
| background: #00; | |
| transition: all .3s; | |
| } | |
| .mfp-fade.mfp-bg.mfp-ready { opacity: .9; } | |
| .mfp-fade.mfp-bg.mfp-removing { opacity: 0; } | |
| .mfp-fade.mfp-wrap .mfp-content { |
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
| //put blocks in the section(position: relative) | |
| <div class="triangle triangle-right-light"></div> | |
| <div class="triangle triangle-left-light"></div> | |
| //sass | |
| .triangle | |
| width: 0 | |
| height: 0 | |
| position: absolute |
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
| $(window).scroll(function() { | |
| if ($(this).scrollTop() > $(this).height()) { | |
| $('.top').addClass('active'); | |
| } else { | |
| $('.top').removeClass('active'); | |
| } | |
| }); | |
| $('.top').click(function() { | |
| $('html, body').stop().animate({scrollTop: 0}, 'slow', 'swing'); | |
| }); |
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
| $colors: $blue, $red, $accent | |
| @for $i from 1 through length($colors) | |
| .carousel-services .owl-item:nth-child(#{length($colors)}n+#{$i}) | |
| background-color: nth($colors, $i) |
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
| //css Add class .scroll to links with anchor | |
| //jQuery | |
| // to top right away | |
| if ( window.location.hash ) scroll(0,0); | |
| // void some browsers issue | |
| setTimeout( function() { scroll(0,0); }, 1); | |
| $(function() { |
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
| $(function() { | |
| $(window).scroll(function() { | |
| if($(this).scrollTop() != 0) { | |
| $('#toTop').fadeIn(); | |
| } else { | |
| $('#toTop').fadeOut(); | |
| } | |
| }); | |
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
| function heightDetect() { | |
| $(".main-head").css("height", $(window).height()); | |
| }; | |
| heightDetect() | |
| $(window).resize(function() { | |
| heightDetect() | |
| }); |
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
| Tabs: | |
| [ | |
| {"caption":"Tab Title", "fields": [ | |
| {"field":"title","caption":"Name"}, | |
| {"field":"description","caption":"Description","inputTVtype":"textarea"}, | |
| {"field":"imageTV","caption":"Photo","inputTV":"imageTV"} | |
| ]} | |
| ] | |
| Table: |
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
| function heightDetect() { | |
| $(".main_head").css("height", $(window).height()); | |
| }; | |
| heightDetect() | |
| $(window).resize(function() { | |
| heightDetect() | |
| }); |