Skip to content

Instantly share code, notes, and snippets.

View zet777's full-sized avatar
🏠
Working from home

Roman zet777

🏠
Working from home
View GitHub Profile
@zet777
zet777 / gradient.css
Created March 14, 2018 01:29
CSS Gradient Animation
background: linear-gradient(326deg, #316155, #5fc370, #b8c35f, #c3905f);
background-size: 800% 800%;
-webkit-animation: screenplug 11s ease infinite;
-moz-animation: screenplug 11s ease infinite;
-o-animation: screenplug 11s ease infinite;
animation: screenplug 11s ease infinite;
@-webkit-keyframes screenplug {
0%{background-position:14% 0%}
50%{background-position:87% 100%}
100%{background-position:14% 0%}
position: absolute;
width: 544px;
height: 275px;
left: 181px;
top: 413px;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(14px);/* Note: backdrop-filter has minimal browser support */
@zet777
zet777 / Animate.css
Last active December 27, 2018 11:00
Анимация прямоугольника с появлением надписи.
body {
height: 100%;
background: linear-gradient(to bottom, #d7ae6c 0%, #2c2416 100%)!important;
}
.fut-block:hover{
border: 6px solid rgba(255,255,255,.0);
}
@zet777
zet777 / checkbox.css
Created December 27, 2018 10:58
Переключатели
body {
background: #eee;
}
.lbl {
position: relative;
display: block;
height: 20px;
width: 44px;
background: #898989;
border-radius: 100px;
@zet777
zet777 / index.html
Created January 21, 2019 14:50
Vue.js 2 - Простые примеры - Часть 3
<!-- Первый пример -->
<h2>Первый пример</h2>
<ul id="repeat-object1">
<li v-for="value in user" v-cloak>
{{ value }}
</li>
</ul>
<hr />
@zet777
zet777 / main.css
Created February 27, 2019 11:39
Скрытие и появление меню при скроле
.header {
position: fixed;
top: 0px;
}
@zet777
zet777 / index.html
Created February 27, 2019 12:01
Кастомный checkbox в виде переключателя
<label class="custom-checkbox">
<input type="checkbox" checked="checked">
Нажми на меня
</label>
@zet777
zet777 / index.html
Created February 27, 2019 12:04
Анимация градиента с плагином granim.js
<canvas id="canvas-basic"></canvas>
<canvas id="canvas-radial"></canvas>
@zet777
zet777 / main.js
Created February 27, 2019 12:16
Как просто определить мобильное устройство с помощью Java Script и jQuery
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
// код для мобильных устройств
} else {
// код для обычных устройств
}
@zet777
zet777 / objectIntl.js
Created May 8, 2021 12:39
Object Intl
const numberFormat = new Intl.NumberFormat('de-DE');
let out = numberFormat.format(74391351.243);
console.log(out);
out = new Intl.NumberFormat("en-US",{
style:"percent"
}).format(0.25);
console.log(out)
// Валюты