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
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
index.html
345 B
👍15🔥6
style.css
827 B
👍9🔥2👏2
This media is not supported in your browser
VIEW IN TELEGRAM
Файлы HTML & CSS 👇🏻
👍43🔥18😍12👏5❤3
index.html
320 B
🔥4🥰3👏3❤1👍1