This media is not supported in your browser
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
Также этот трюк можно реализовать с помощью Page Visibility API:
document.addEventListener("visibilitychange", () => {
document.title = visibilityState;
});
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
Крутая подборка сниппетов кода, цветов, градиентов, шрифтов, различных иконок и анимации – в общем всяких полезностей для фронтендеров.
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
💎 Interactive particles text
➡️ Фантастически красивая анимация текста для твоего проекта с интерактивными частицами на JS
🔗 Ссылка
CodeBase | Frontend
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
Здесь всё просто:
function isInteger(num) {
return num % 1 === 0;
}
Например:
console.log(isInteger(4)); // true
console.log(isInteger(4.2)); // false
console.log(isInteger(-3)); // true
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
css
.color-change {
background-color: #3498db;
transition: background-color 0.5s;
}
.color-change:hover {
background-color: #e74c3c;
}
css
.move {
position: relative;
animation: moveAnimation 2s infinite;
}
@keyframes moveAnimation {
0% { left: 0; }
50% { left: 50%; }
100% { left: 0; }
}
css
.resize {
transform: scale(1);
transition: transform 0.5s;
}
.resize:hover {
transform: scale(1.2);
}
css
.rotate {
transform: rotate(0);
transition: transform 1s;
}
.rotate:hover {
transform: rotate(360deg);
}
css
@keyframes blink {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
.blink {
animation: blink 1s infinite;
}
@keyframes
) для создания разнообразных эффектов на вашем веб-сайте.Для тех, кто интересуется анимацией, нашел для вас крутой курс.
Вот ССЫЛКА НА КУРС (ID: 020)
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
Данный макет прокачает ваши навыки до небес!
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
В каком элементе вы размещаете JavaScript?
Anonymous Poll
2%
<var>
93%
<script>
2%
<section>
3%
<code>
let a = 1;
let b = 1.5;
let a = "John" * 20; // вернет NaN
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM