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($('#chosefile').length){ | |
| $('#chosefile').change(function(e){ | |
| var fileName = e.target.files[0].name; | |
| $(".attach-btn-wrap span").text(fileName); | |
| }); | |
| } |
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
| <h1><small>Fullscreen</small> Ken Burns effect <small>without javascript</small></h1> | |
| <!-- You can add more ".slideshow-image" elements, but remember to update the "$items" variable on SCSS --> | |
| <div class="slideshow"> | |
| <div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/nature/1600x1400')"></div> | |
| <div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/buildings/1600x1400')"></div> | |
| <div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/food/1600x1400')"></div> | |
| <div class="slideshow-image" style="background-image: url('https://source.unsplash.com/category/technology/1600x1400')"></div> | |
| </div> |
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 preload = document.getElementById("main-preloader"); | |
| window.addEventListener("load", function(){ | |
| //preload.style.animation = " fadeOut 1s ease" | |
| preload.style.display = " none" | |
| }) |
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
| <!-- Html Markup --> | |
| <div class="product-details-wrap" id="product-details-wrap"> | |
| <div class="product-item-info scroll-effect"> | |
| <span class="economic"> Economics</span> | |
| <h6>e-Marefa DataBank for Islamic Economics and Finance</h6> | |
| <p>An integrated set of databases containing tens of thousands of records from 300 institutions in 40 countries.</p> | |
| <a href="#">View Service</a> | |
| </div> | |
| <div class="product-item-info scroll-effect"> |
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 sec = 2 | |
| var timer = setInterval(function() { | |
| $('#hideMsg span').text(sec--); | |
| if (sec == -1) { | |
| $('#hideMsg').fadeOut('fast'); | |
| clearInterval(timer); | |
| } | |
| }, 1000); |
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() { | |
| var theta = $(window).scrollTop() / 800 % Math.PI; | |
| $('#leftgear').css({ transform: 'rotate(' + theta + 'rad)' }); | |
| $('#rightgear').css({ transform: 'rotate(-' + theta + 'rad)' }); | |
| }); |
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
| // Parallax effect | |
| if($(".parallax-section").length){ | |
| var winScrollTop=0; | |
| $.fn.is_on_screen = function(){ | |
| var win = $(window); | |
| var viewport = { | |
| top : win.scrollTop(), | |
| left : win.scrollLeft() | |
| }; | |
| //viewport.right = viewport.left + win.width(); |