Please open Telegram to view this post
VIEW IN TELEGRAM
👍6🔥3
This media is not supported in your browser
VIEW IN TELEGRAM
HTML - разметка
<div class="container">
<div class="flex-item">1</div>
<div class="flex-item">2</div>
<div class="flex-item">3</div>
<div class="flex-item">4</div>
</div>
CSS - стили
.container {
font-family: 'Segoe UI', Tahoma;
display: flex;
width: 100%;
flex-wrap: wrap;
}
.flex-item {
background: #F4BD50;
font-size: 1.5rem;
display: flex;
height: 3.75rem;
align-items: center;
justify-content: center;
flex-grow: 1;
flex-basis: 6.25rem;
}
.flex-item:nth-child(even) {
background: #c7a4ff;
}Please open Telegram to view this post
VIEW IN TELEGRAM
👍5🔥3❤1
This media is not supported in your browser
VIEW IN TELEGRAM
z-index — CSS свойство, которое определяет порядок наложения элементов в трёхмерном пространстве на веб-странице
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣11👍4
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣10👍2🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
Код и демо: codepen.io/jkantner/pen/JoPXzJJ
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🔥2
This media is not supported in your browser
VIEW IN TELEGRAM
Анимация в URL с помощью JavaScript и Emoji 👨💻
👍 - если было полезно | ➡️ WebTaverna
const myEmojis = ['😃', '🤨', '😡']
function urlAnimate () {
window.location.hash = myEmojis
[Math.floor((Date.now()/100)%myEmojis.length)]
setTimeout(urlAnimate, 1000)
}
urlAnimate()
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5🔥3
This media is not supported in your browser
VIEW IN TELEGRAM
Отлично подойдет для оформления каких-либо элементов на сайтах медицинской тематики
HTML-разметка
<div class="loading">
<svg width="16px" height="12px">
<polyline id="back" points="1 6 4 6 6 11 10 1 12 6 15 6"></polyline>
<polyline id="front" points="1 6 4 6 6 11 10 1 12 6 15 6"></polyline>
</svg>
</div>
CSS-стили
.loading {
transform: scale(10);
}
.loading svg polyline {
fill: none;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.loading svg polyline#back {
stroke: #ff4d5033;
}
.loading svg polyline#front {
stroke: #ff4d4f;
stroke-dasharray: 12, 36;
stroke-dashoffset: 48;
animation: dash 1s linear infinite;
}
@keyframes dash {
62.5% {
opacity: 0;
}
to {
stroke-dashoffset: 0;
}
}Please open Telegram to view this post
VIEW IN TELEGRAM
🔥6👍2
This media is not supported in your browser
VIEW IN TELEGRAM
Код и демо: codepen.io/leonam-silva-de-souza/pen/YzmdJOd
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🔥4
This media is not supported in your browser
VIEW IN TELEGRAM
Анимированный текст с градиентом на 🔠 🔠 🔠
HTML разметка
CSS стили
👍 - если было полезно | ➡️ WebTaverna
HTML разметка
<h1>t.me/WebTaverna</h1>
CSS стили
h1 {
background: linear-gradient(90deg,
#d988da, #dcde8a, #d988da);
background-repeat: no-repeat;
background-size: 80%;
animation: animate 3s linear infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(255, 255, 255, 0);
}
@keyframes animate {
0% { background-position: -500%; }
100% { background-position: 500%; }
}Please open Telegram to view this post
VIEW IN TELEGRAM
👍3🔥1
Ну чё пора?! 👨💻
А вы как относитесь к кодингу по ночам?
👍 — обожаю ночной кодинг
🤨 — сомнительно, но иногда можно
🫡 — спасибо, но нет... я лучше посплю
А вы как относитесь к кодингу по ночам?
👍 — обожаю ночной кодинг
🤨 — сомнительно, но иногда можно
🫡 — спасибо, но нет... я лучше посплю
Please open Telegram to view this post
VIEW IN TELEGRAM
🫡15👍13🤨9
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4❤1
Media is too big
VIEW IN TELEGRAM
HTML разметка
<div class="layout">
<header>Header</header>
<nav>Sidebar</nav>
<main>Main</main>
<article class="widget">Widget</article>
<article class="statistics">Statistics</article>
<footer>Footer</footer>
</div>
CSS стили
.layout {
display: grid;
gap: 4px;
grid-template-rows: 40px 40px auto 60px 60px 40px;
grid-template-columns: 1fr;
grid-template-areas: 'header' 'sidebar' 'main' 'widget' 'statistics' 'footer';
height: 100vh;
}
@media (min-width: 480px) {
.layout {
display: grid;
grid-template-rows: 40px auto 80px 40px;
grid-template-columns: 160px auto auto;
grid-template-areas: 'header header header' 'sidebar main main' 'sidebar widget statistics' 'footer footer footer';
}
}
header {
grid-area: header;
background: #c08bfd;
}
footer {
grid-area: footer;
background: #c08bfd;
}
nav {
grid-area: sidebar;
background: #f6c356;
}
main {
grid-area: main;
background: #b2ee94;
}
.widget {
grid-area: widget;
background: #ff8983;
width: 100%;
}
.statistics {
grid-area: statistics;
background: #99c2fe;
width: 100%;
}Please open Telegram to view this post
VIEW IN TELEGRAM
👍12
This media is not supported in your browser
VIEW IN TELEGRAM
Код и демо: codepen.io/bramus/pen/zxOOzYX
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3👍2🔥2