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
<snippet> | |
<content><![CDATA[ | |
<!-- begin $1 --> | |
<div class="$1"> | |
$2 | |
</div> | |
<!-- end $1 --> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>di</tabTrigger> |
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
// Page index, split description text for gsap "staggerFrom" | |
var text = $('#design').text(), | |
splitSpace = text.split(' '), | |
wordsArray = []; | |
counter = 1; | |
$(splitSpace).each(function(i){ | |
markup = '<span class="span-'+ counter +'"> ' + splitSpace[i] + ' </span>'; | |
wordsArray.push(markup); | |
counter += 1; | |
}); |
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
.top | |
background-color: $accent-color | |
display: inline-block | |
width: 40px | |
height: 40px | |
border-radius: 10em | |
position: fixed | |
z-index: 999 | |
top: 60% | |
right: -60px |
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() { | |
// Поскольку кнопка за аппендена то делаем через ON | |
$("body").on("click", ".top", function() { | |
$("html, body").animate({scrollTop: 0}, "slow"); | |
}); | |
$("body").append('<div class="top">^'); | |
// Функция скроллинга странички, добавляем класс active к заапенденной .top кнопке, если высота окна | |
//больше его первоначальнойвысоты... |
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($) { | |
$.fn.myParallax = function() { | |
return this.each(function() { | |
var ths = $(this); |
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
SASS: | |
.mfp-ready .mfp-figure | |
opacity: 0 | |
.mfp-zoom-in | |
.mfp-figure, .mfp-iframe-holder .mfp-iframe-scaler | |
opacity: 0 | |
transition: all 0.3s ease-out | |
transform: scale(0.95) | |
&.mfp-bg, .mfp-preloader | |
opacity: 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
<style> | |
/* ---------------------------------------------- /* | |
* Mouse animate icon | |
/* ---------------------------------------------- */ | |
.mouse-icon { | |
border: 2px solid #000; | |
border-radius: 16px; | |
height: 40px; | |
width: 24px; | |
display: block; |
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
<VirtualHost *:80> | |
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/" | |
ServerName localhost | |
<Directory "/Applications/XAMPP/xamppfiles/htdocs/"> | |
Options Indexes FollowSymLinks Includes execCGI | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
NewerOlder