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 | |
$username=$_POST['form_name']; | |
$phone=$_POST['form_phone']; | |
$message = " | |
Имя: ".htmlspecialchars($username)."<br /> | |
Телефон: ".htmlspecialchars($phone); | |
require_once('phpmailer/PHPMailerAutoload.php'); | |
$mail = new PHPMailer; |
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
<div class="offers__wrap"> | |
<ul class="offers__list"> | |
<li> | |
<a href="#" class="offer"> | |
<div class="offer__inner"> | |
<div class="offer__img-wrap"> | |
<div class="offer__img" style="background-image: url(/upload/resize_cache/iblock/916/120_120_0619711fa078991f0a23d032687646b21/916c9aeb22e11effe192b158774ca4d3.png)" ></div> | |
</div> | |
<div class="offer__body"> | |
<h3 class="offer__title">Увеличение груди</h3> |
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
ease: "cubic-bezier(1, 0, 0.3, 1)" | |
easeOut: "cubic-bezier(0.165, 0.84, 0.44, 1)" | |
easeIn: "cubic-bezier(0.755, 0.05, 0.855, 0.06)" | |
default: "cubic-bezier(0.25, 0.1, 0.25, 1)" | |
easeInOut2: "cubic-bezier(0.455, 0.030, 0.515, 0.955)" | |
easePower2: "cubic-bezier(0.77, 0, 0.175, 1)" | |
easePower3: "cubic-bezier(0.645, 0.045, 0.355, 1)" | |
easePower4: "cubic-bezier(0.770, 0.000, 0.175, 1)" | |
easeSine: "cubic-bezier(0.445, 0.05, 0.55, 0.95)" | |
easeInPower2: "cubic-bezier(0.550, 0.085, 0.680, 0.530)" |
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
// Options | |
const options = { | |
threshold: [0, 0.25, 0.5, 0.75, 1] | |
}; | |
const animateItem = item => item.target.classList.add('visible'); | |
// Create observer | |
const observer = new IntersectionObserver(items => { | |
items.forEach(item => { |
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
console.log(+getComputedStyle(mainImage) | |
.transform.slice(7) | |
.split(',')[0]) |
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
import { TweenMax } from 'gsap'; | |
import anime from 'animejs'; | |
window.anime = anime; | |
const get = (el, dir) => { | |
const translate = getComputedStyle(el) | |
.getPropertyValue('transform') | |
.match(/(-?[0-9\.]+)/g); |
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
function snapTranslateXYValsToNearestPixel(element){ | |
var xTransPos = $(element).offset().left; | |
var yTransPos = $(element).offset().top; | |
// turn off any transitions (but save values first): | |
var transitionVal = $(element).css('transition'); | |
$(element).css('transition', 'none'); | |
// turn off translate: | |
$(element).css('transform', 'translateX(0) translateY(0)'); | |
var xPosDiff = xTransPos - $(element).offset().left; | |
var yPosDiff = yTransPos - $(element).offset().top; |
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
const outer = document.createElement('div'); | |
const inner = document.createElement('div'); | |
outer.style.overflow = 'scroll'; | |
document.body.appendChild(outer); | |
outer.appendChild(inner); | |
const scrollbarWidth = outer.offsetWidth - inner.offsetWidth; | |
document.body.removeChild(outer); |
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
@for $i from 1 through 10 | |
.menu__social-item:nth-child(#{$i}) | |
transition-delay:(#{$i*0.15s}) |