WEB BEKS | HTML & CSS & JS
7.72K subscribers
11 photos
335 videos
524 files
24 links
FRONT-END разрабатывание
Готовые коды на HTML & CSS & JS
Сотрудничество - @web_beks
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
HTML

<div>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Blog</a>
<a href="#">Portefolio</a>
<a href="#">Contact</a>
<div class="animation start-home"></div>
</div>
❤‍🔥33👍8🔥6
CSS

body{
font-family: sans-serif;
background: #2c3e50;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
div{
position: relative;
width: 590px;
height: 50px;
background-color: #34495e;
border-radius: 8px;
font-size: 0;
}
a{
line-height: 50px;
height: 100%;
font-size: 15px;
display: inline-block;
position: relative;
z-index: 1;
text-decoration: none;
text-transform: uppercase;
text-align: center;
color: white;
cursor: pointer;
}
.animation {
position: absolute;
height: 100%;
top: 0;
z-index: 0;
transition: all .5s ease 0s;
border-radius: 8px;
}
a:nth-child(1){
width: 100px;
}
a:nth-child(2){
width: 110px;
}
a:nth-child(3){
width: 100px;
}
a:nth-child(4){
width: 160px;
}
a:nth-child(5){
width: 120px;
}
.start-home, a:nth-child(1):hover~.animation{
width: 100px;
left: 0;
background-color: #1abc9c;
}
.start-about, a:nth-child(2):hover~.animation{
width: 110px;
left: 100px;
background-color: #e74c3c;
}
.start-blog, a:nth-child(3):hover~.animation{
width: 100px;
left: 210px;
background-color: #3498db;
}
.start-portefolio, a:nth-child(4):hover~.animation{
width: 160px;
left: 310px;
background-color: #9b59b6;
}
.start-contact, a:nth-child(5):hover~.animation{
width: 120px;
left: 470px;
background-color: #e67e22;
}
🔥33👍18🌭5❤1
This media is not supported in your browser
VIEW IN TELEGRAM
HTML

<div class="flex">
<h2 class="opros">Ты тупой?</h2>
</div>
<div class="flex">
<div class="board">
<button id="btn1" class="btn">Да</button>
<button id="btn" class="btn">Нет</button>
</div>
</div>
👍63🤣48🔥12❤3🏆3⚡2🤡2👎1
CSS

body{
background: #222;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
box-sizing: border-box;
}
.flex{
display: flex;
justify-content: center;
}
h2{
color: #fff;
letter-spacing: 1px;
}
.btn{
position: relative;
text-transform: uppercase;
letter-spacing: 1px;
width: 120px;
font-weight: bold;
height: 50px;
transition: 0.08s;
border: none;
background: #fff;
border-radius: 10px;
cursor: pointer;
margin: 40px 5px;
}
❤‍🔥20👍16🤣3⚡2👎2🤨2👨‍💻2🤩1🌚1
JS

let btn1 = document.querySelector('#btn1');
let opros = document.querySelector('.opros');

const random = (min, max) => {
const rand = min + Math.random() * (max - min + 1);
return Math.floor(rand);
}

let btn = document.querySelector('#btn');
btn.addEventListener('mouseenter', () => {
btn.style.left = `${random(0, 90)}%`;
btn.style.top = `${random(0, 90)}%`;
})

btn.addEventListener('click', function(){
opros.textContent = 'Ошибка повторите попытку!!!'
})

btn1.addEventListener('click', function(){
opros.textContent = 'Спасибо за честность!!!'
})
🔥16👨‍💻13👍10❤5🤓3🤣2
This media is not supported in your browser
VIEW IN TELEGRAM
Файлы HTML & CSS & JS 👇🏻
👍36🔥18👌4❤3👏3⚡2🥰2
style.css
1.3 KB
🔥22👍2
index.html
772 B
❤20👍5
This media is not supported in your browser
VIEW IN TELEGRAM
Файлы HTML & CSS 👇🏻
🔥32❤5👍1🤩1
This media is not supported in your browser
VIEW IN TELEGRAM
Файлы HTML & CSS & JS 👇🏻
👍31🔥14👏4
This media is not supported in your browser
VIEW IN TELEGRAM
Файлы HTML & CSS 👇🏻
👏34👨‍💻13🔥4👍1
style.css
2 KB
👍2😍1
This media is not supported in your browser
VIEW IN TELEGRAM
Файлы HTML & CSS 👇🏻
👍37❤14🤯9🔥5❤‍🔥2