This file contains 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
<?php | |
/* | |
Plugin Name: Admin | |
Plugin URI: http://portfolio.vassiliev.org/ | |
Description: plugin for EveryStaff site | |
Author: Alexander Vassiliev | |
Author URI: http://portfolio.vassiliev.org/ | |
*/ | |
function everystaff_admin_theme_style() { |
This file contains 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
// Vivus SVG animation | |
// Initial CSS: display: none | |
var details = { | |
type: "delayed", | |
duration: 200, | |
animTimingFunction: Vivus.EASE | |
}; |
This file contains 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 Loop | |
li | |
@for $i from 1 through 6 | |
&:nth-child(#{$i}) | |
animation-duration: 400ms * $i |
This file contains 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 | |
<p class="link-button"> | |
<a href="#subscribe">Подписаться</a> | |
</p> | |
<div id="subscribe" class="modal"> | |
<div class="content"> | |
<form class="forms"> | |
<h4>Подписка:</h4> |
This file contains 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
// jQuery | |
$("a[href^='#section']").on('click', function (event) { | |
var target = $(this.getAttribute('href')); | |
if (target.length) { | |
event.preventDefault(); | |
$('html, body').stop().animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
} |
This file contains 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 | |
<section id="portfolio" class="s-portfolio bg-dark"> | |
<div class="section-header"> | |
<h2>Портфолио</h2> | |
<div class="s-descr-wrap"> | |
<h6>Мои последние работы</h6> | |
</div> | |
</div> | |
<div class="section-content"> |
NewerOlder