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
.icons{
display: inline-flex;
}
.icons a{
margin: 0 14px;
text-decoration: none;
color: #fff;
display: block;
position: relative;
}
.icons a .layer{
width: 55px;
height: 55px;
transition: transform 0.3s;
}
.icons a:hover .layer{
transform: rotate(-35deg) skew(20deg);
}
.icons a .layer span{
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
border: 1px solid #fff;
border-radius: 5px;
transition: all 0.3s;
}
.icons a .layer span.fab{
font-size: 30px;
line-height: 55px;
text-align: center;
}
.icons a:hover .layer span:nth-child(1){
opacity: 0.2;
}
.icons a:hover .layer span:nth-child(2){
opacity: 0.4;
transform: translate(5px, -5px);
}
.icons a:hover .layer span:nth-child(3){
opacity: 0.6;
transform: translate(10px, -10px);
}
.icons a:hover .layer span:nth-child(4){
opacity: 0.8;
transform: translate(15px, -15px);
}
.icons a:hover .layer span:nth-child(5){
opacity: 1;
transform: translate(20px, -20px);
}
.icons a:nth-child(1) .layer span,
.icons a:nth-child(2){
color: #2fa7f1;
border-color: #2fa7f1;
}
.icons a:nth-child(2) .layer span,
.icons a:nth-child(2){
color: #ec467f;
border-color: #ec467f;
}
.icons a:hover:nth-child(1) .layer span{
box-shadow: -1px 1px 3px #1DA1F2;
}
.icons a:hover:nth-child(2) .layer span{
box-shadow: -1px 1px 3px #E1306C;
}
.icons a .text{
position: absolute;
left: 50%;
bottom: -5px;
opacity: 0;
font-weight: 500;
transform: translateX(-50%);
transition: bottom 0.3s ease, opacity 0.3s ease;
}
👍8
CSS
html, body{
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #333;
}
.box{
background: linear-gradient(to right, rgb(0, 247, 255), #0e1438);
color: white;
--width: 250px;
--height: calc(var(--width) / 3);
width: var(--width);
height: var(--height);
text-align: center;
line-height: var(--height);
font-size: calc(var(--height) / 2.5);
font-family: sans-serif;
letter-spacing: 0.2em;
border: 1px solid darkgoldenrod;
border-radius: 2em;
transform: perspective(500px) rotateY(-15deg);
text-shadow: 6px 3px 2px rgba(0, 0, 0, 0.2);
box-shadow: 2px 0 0 5px rgba(0, 0, 0, 0.3);
transition: 0.5s;
position: relative;
overflow: hidden;
cursor: pointer;
}
.box:hover{
transform: perspective(500px) rotateY(15deg);
text-shadow: -6px 3px 2px rgba(0, 0, 0, 0.2);
box-shadow: -2px 0 0 5px rgba(0, 0, 0, 0.2);
}
.box::before{
content: '';
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(to right, transparent, white, transparent);
left: -100%;
transition: 0.5s;
}
.box:hover::before{
left: 100%;
}
👍4❤1
This media is not supported in your browser
VIEW IN TELEGRAM
HTML
<div class="product">
<img class="mattress" src="https://res.cloudinary.com/dboztnq7k/image/upload/v1484647571/mattress_faprcd.png"/>
<div class="copy">
<h4>Lorem Ipsum 6500</h4>
<p>ab 450,00 €</p>
</div>
<a class="cta" href="#">Buy</a>
</div>
👍3
CSS
body {
min-height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #111;
}
.product {
cursor:pointer;
position:relative;
height:275px;
z-index:1;
}
.product:before {
content: ' ';
display:block;
width:440px;
height:180px;
position:absolute;
left:-40px;
top:-20px;
background: linear-gradient(to right, #5f7ad5, #914fff);
z-index:-1;
transition: all 0.5s ease-in-out;
}
.mattress {
margin-top:0;
transition: all 0.5s ease-in-out;
position:relative;
z-index:1;
}
.product:hover .mattress {
margin-top:-16px;
}
.product:after {
content:' ';
display:block;
height:271px;
width:383px;
position:absolute;
top: 3px;
left: 0;
background-size: 100% 100%;
background-repeat: no-repeat;
z-index:0;
opacity:.8;
transition: all 0.5s ease-in-out;
}
.product:hover:after {
top:10px;
left:2%;
background-size: 97% 97%;
opacity:0.35;
}
.product:hover:before {
height:325px;
}
.copy {
position:absolute;
top:230px;
left:0;
font-family: "Nunito", sans-serif;
color:#1f56e1;
letter-spacing: 0.3px;
transition: all 0.5s ease-in-out;
}
.copy p, .copy h4 {
margin:0;
}
.product:hover .copy {
color:#fff;
}
.cta {
opacity:0;
position:absolute;
top:230px;
right:15px;
background-color: #fff;
color: #243F81;
border-radius: 50px;
padding: 12px 48px;
font-family: 'Nunito', sans-serif;
font-size: 16px;
font-weight: 200;
text-decoration: none;
box-shadow: 0 16px 32px 0 rgba(0, 40, 120, .35);
transition: all 0.7s ease;
}
.cta:hover {
box-shadow: 0 0px 0px 0 rgba(0, 40, 120, 0);
background-color: #243F81;
color: #fff;
}
.product:hover .cta {
opacity:1;
}
👍7
This media is not supported in your browser
VIEW IN TELEGRAM
HTML
<div class="login">
<h2 class="active">sign in</h2>
<form>
<input type="text" class="text" name="username">
<span>username</span>
<br>
<input type="password" class="text">
<span>password</span>
<br>
<input type="checkbox"/>
<label for="checkbox-1-1">Keep me Signed in</label>
<button class="sign">Sign In</button>
<hr>
<a href="#">Forgot Password?</a>
</form>
</div>
👍11❤1
CSS
.login {
position: relative;
height: 560px;
width: 405px;
margin: auto;
padding: 60px 60px;
background: #222;
box-shadow: 0px 30px 60px -5px #000;
}
form {
padding-top: 60px;
}
.active {
border-bottom: 2px solid #1161ed;
}
h2 {
padding-left: 12px;
font-size: 22px;
text-transform: uppercase;
padding-bottom: 5px;
letter-spacing: 2px;
display: inline-block;
font-weight: 100;
}
h2:first-child {
padding-left: 0px;
}
span {
text-transform: uppercase;
font-size: 12px;
opacity: 0.4;
display: inline-block;
position: relative;
top: -60px;
left: 15px;
transition: all 0.5s ease-in-out;
}
.text {
width: 100%;
height: 40px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0);
margin-top: 15px;
transition: all 0.5s ease-in-out;
}
input {
color: #fff;
padding: 7px;
}
label {
display: inline-block;
padding-top: 10px;
}
.sign {
background-color: #1161ed;
color: #FFF;
width: 100%;
padding: 10px 20px;
display: block;
height: 39px;
border-radius: 20px;
margin-top: 30px;
transition: all 0.5s ease-in-out;
border: none;
text-transform: uppercase;
}
.signin:hover {
background: #4082f5;
box-shadow: 0px 4px 35px -5px #4082f5;
cursor: pointer;
}
hr {
border: 1px solid rgba(255, 255, 255, 0.1);
top: 85px;
position: relative;
}
a {
text-align: center;
display: block;
top: 120px;
position: relative;
text-decoration: none;
color: rgba(255, 255, 255, 0.2);
}
👍14
This media is not supported in your browser
VIEW IN TELEGRAM
HTML
<div class="calculator-grid">
<div class="output">
<div data-previous-operand class="first-operand"></div>
<div data-current-operand class="second-operand"></div>
</div>
<button data-all-clear class="doubled-grid">AC</button>
<button data-delete>DEL</button>
<button data-operation>÷</button>
<button data-number>7</button>
<button data-number>8</button>
<button data-number>9</button>
<button data-operation>*</button>
<button data-number>4</button>
<button data-number>5</button>
<button data-number>6</button>
<button data-operation>+</button>
<button data-number>1</button>
<button data-number>2</button>
<button data-number>3</button>
<button data-operation>-</button>
<button data-number>.</button>
<button data-number>0</button>
<button data-equals class="doubled-grid">=</button>
</div>
👍11🕊1
CSS
*{
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
}
body{
background: linear-gradient(to right,#e302f3, #00aaff);
}
.calculator-grid{
display: grid;
justify-content: center;
align-content: center;
min-height: 100vh;
grid-template-columns: repeat(4, 100px);
grid-template-rows: minmax(120px, auto) repeat(5, 100px);
}
.calculator-grid > button{
cursor: pointer;
font-size: 2rem;
border: 1px solid white;
outline: none;
background-color: rgba(255, 255, 255, 0.75);
}
.calculator-grid > button:hover{
background-color: rgba(255, 255, 255, 0.9);
}
.doubled-grid{
grid-column: span 2;
}
.output{
grid-column: 1 / -1;
background-color: rgba(0, 0, 0, 0.75);
display: flex;
align-items: flex-end;
justify-content: space-around;
flex-direction: column;
padding: 10px;
word-wrap: break-word;
word-break: break-all;
}
.output .first-operand{
color: rgba(255, 255, 255, 0.75);
font-size: 1.5rem;
}
.output .second-operand{
color: white;
font-size: 2.5rem;
}
👍7
JavaScript
class Calculator {
constructor(previousOperandTextElement, currentOperandTextElement) {
this.previousOperandTextElement = previousOperandTextElement;
this.currentOperandTextElement = currentOperandTextElement;
this.clear();
}
clear() {
this.currentOperand = '';
this.previousOperand = '';
this.operation = null;
}
delete() {
this.currentOperand = this.currentOperand.toString().slice(0, -1);
}
appendNumber(number) {
if (number === '.' && this.currentOperand.includes('.')) {
return;
}
this.currentOperand = this.currentOperand.toString() + number.toString();
}
chooseOperation(operation) {
if (this.currentOperand === '') {
return;
}
if (this.previousOperand !== '') {
return this.compute();
}
this.operation = operation;
this.previousOperand = this.currentOperand;
this.currentOperand = '';
}
compute(){
let computation;
const prev = parseFloat(this.previousOperand);
const current = parseFloat(this.currentOperand);
if (isNaN(prev) || isNaN(current)) {
return;
}
switch (this.operation) {
case '+': computation = prev + current;
break;
case '-': computation = prev - current;
break;
case '*': computation = prev * current;
break;
case '÷': computation = prev / current;
break;
default: return;
}
this.currentOperand = computation.toFixed(5);
this.operation = null;
this.previousOperand = '';
}
getDisplayNumber(number) {
const stringNumber = number.toString();
const integerDigits = parseFloat(stringNumber.split('.')[0]);
const decimalDigits = stringNumber.split('.')[1];
let integerDisplay;
if (isNaN(integerDigits)) {
integerDisplay = '';
} else {
integerDisplay = integerDigits.toLocaleString('en', {
maximumFractionDigits: 0
});
}
if (decimalDigits != null) {
return `${integerDisplay}.${decimalDigits}`;
} else {
return integerDisplay;
}
}
updateDisplay() {
this.currentOperandTextElement.innerText = this.getDisplayNumber(
this.currentOperand
);
if (this.operation != null) {
this.previousOperandTextElement.innerText = `${this.getDisplayNumber(
this.previousOperand
)} ${this.operation}`;
} else {
this.previousOperandTextElement.innerText = '';
}
}
}

const numberButtons = document.querySelectorAll('[data-number]');
const operationButtons = document.querySelectorAll('[data-operation]');
const equalsButton = document.querySelector('[data-equals]');
const deleteButton = document.querySelector('[data-delete]');
const allClearButton = document.querySelector('[data-all-clear]');
const previousOperandTextElement = document.querySelector(
'[data-previous-operand]'
);
const currentOperandTextElement = document.querySelector(
'[data-current-operand]'
);
const calculator = new Calculator(
previousOperandTextElement,
currentOperandTextElement
);
numberButtons.forEach(button => {
button.addEventListener('click', () => {
calculator.appendNumber(button.innerText);
calculator.updateDisplay();
});
});
operationButtons.forEach(button => {
button.addEventListener('click', () => {
calculator.chooseOperation(button.innerText);
calculator.updateDisplay();
});
});
equalsButton.addEventListener('click', button => {
calculator.compute();
calculator.updateDisplay();
});
allClearButton.addEventListener('click', button => {
calculator.clear();
calculator.updateDisplay();
});
deleteButton.addEventListener('click', button => {
calculator.delete();
calculator.updateDisplay();
});
👍10❤1
This media is not supported in your browser
VIEW IN TELEGRAM
HTML
<div class="clock">
<img src="https://dl.dropbox.com/s/f3b3lyanili7zl2/clock%20template-01.svg?raw=1">
<div class="hour hand" id="hour"></div>
<div class="minute hand" id="minute"></div>
<div class="seconds hand" id="seconds"></div>
</div>
👍9❤‍🔥2
CSS
body{
background: url(https://dl.dropbox.com/s/8bojjv34k37t16m/Webp.net-resizeimage%20%282%29.jpg?raw=1) no-repeat center center fixed;
background-size: cover;
height: 100vh;
padding: 0;
margin: 0;
}
.clock{
height: 320px;
width: 320px;
background-color: rgba(255,255,255,0.06);
backdrop-filter: blur(20px);
border-radius: 50%;
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
box-shadow: 30px 30px 35px rgba(0,0,0,0.25);
border: 2px solid rgba(255,255,255,0.1);
}
img{
opacity: 0.6;
}
.hand{
position: absolute;
margin: auto;
left: 0;
right: 0;
background-color: rgba(255,255,255,0.2);
backdrop-filter: blur(20px);
border-radius: 5px;
transform-origin: bottom;
}
.hour{
height: 60px;
width: 10px;
top: 100px;
}
.minute{
height: 80px;
width: 5px;
top: 80px;
}
.seconds{
height: 90px;
width: 3px;
top: 70px;
}
👍9
JavaScript
var hour = document.getElementById("hour");
var minute = document.getElementById("minute");
var seconds = document.getElementById("seconds");

var set_clock = setInterval(
function clock(){
var date_now = new Date();
var hr = date_now.getHours();
var min = date_now.getMinutes();
var sec = date_now.getSeconds();
var calc_hr = (hr * 30) + (min / 2);
var calc_min = (min * 6) ;
var calc_sec = sec * 6 ;
hour.style.transform = "rotate(" + calc_hr + "deg)";
minute.style.transform = "rotate(" + calc_min + "deg)";
seconds.style.transform = "rotate(" + calc_sec + "deg)";
}, 1000);
👍13
This media is not supported in your browser
VIEW IN TELEGRAM
HTML
<div class="container">
<div class="img-container">
<img src="https://images.unsplash.com/photo-1534809027769-b00d750a6bac?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1534&q=80">
</div>
<ul class="social-media">
<li><a href="#"><ion-icon name="logo-instagram"></ion-icon></a></li>
<li><a href="#"><ion-icon name="logo-facebook"></ion-icon></a></li>
<li><a href="#"><ion-icon name="logo-youtube"></ion-icon></a></li>
<li><a href="#"><ion-icon name="logo-whatsapp"></ion-icon></a></li>
<li><a href="#"><ion-icon name="logo-tiktok"></ion-icon></a></li>
</ul>
<div class="user-info">
<h2>WEB BEKS</h2>
<span>front-end</span>
</div>
</div>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
👍4🔥4
CSS
body {
background-color: #2C3A47;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
padding: 0;
}
.container{
position: relative;
height: 500px;
width: 400px;
overflow: hidden;
box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
}
.container:hover{
box-shadow: 1px 2px 10px rgba(0,0,0,0.5);
}
.img-container{
background-color: #000;
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
transition: transform 0.3s ease-out;
z-index: 2;
}
.img-container:hover{
cursor: pointer;
}
.container:hover .img-container{
transform: translateY(-100px);
}
.img-container > img {
height: 100%;
width: 100%;
transition: opacity 0.3s ease-out;
}
.container:hover > .img-container > img{
opacity: 0.5;
}
.social-media {
display: flex;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 3;
margin: 0;
padding: 0;
}
.social-media > li{
list-style: none;
}
.social-media > li > a{
display: block;
height: 50px;
width: 50px;
background-color: #FFF;
text-align: center;
color: #262626;
margin: 0 5px;
border-radius: 50%;
opacity: 0;
transition: all 0.3s ease-out;
}
.container:hover > .social-media > li > a{
opacity: 1;
}
.social-media > li > a > ion-icon {
font-size: 24px;
margin: 13px 0;
transition: transform 0.3s ease-out;
}
.social-media > li > a:hover > ion-icon {
transform: rotateY(360deg);
}
.container:hover .social-media li:nth-child(2) a{
transition-delay: 0.1s;
}
.container:hover .social-media li:nth-child(3) a{
transition-delay: 0.2s;
}
.container:hover .social-media li:nth-child(4) a{
transition-delay: 0.3s;
}
.container:hover .social-media li:nth-child(5) a{
transition-delay: 0.4s;
}
.user-info{
position: absolute;
bottom: 0;
left: 0;
background-color: #FFF;
height: 100px;
width: 100%;
box-sizing: border-box;
padding: 10px;
text-align: center
}
.user-info > h2{
margin: 10px 0;
}
.user-info > span{
color: #262626;
font-size: 16px;
}
👍6❤4
This media is not supported in your browser
VIEW IN TELEGRAM
HTML

<div class="container">
<div class="box">
<span></span>
<div class="content">
<h2>Card one</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<a href="#">Read More</a>
</div>
</div>
<div class="box">
<span></span>
<div class="content">
<h2>Card two</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<a href="#">Read More</a>
</div>
</div>
<div class="box">
<span></span>
<div class="content">
<h2>Card Three</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
👍20❤4⚡1
CSS

body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #1d061a;
font-family: consolas;
}
.container{
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding: 40px 0;
}
.box{
position: relative;
width: 320px;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
margin: 40px 30px;
transition: 0.5s;
}
.box::before{
content:' ';
position: absolute;
top: 0;
left: 50px;
width: 50%;
height: 100%;
text-decoration: none;
background: #fff;
border-radius: 8px;
transform: skewX(15deg);
transition: 0.5s;
}
.box::after{
content:'';
position: absolute;
top: 0;
left: 50;
width: 50%;
height: 100%;
background: #fff;
border-radius: 8px;
transform: skewX(15deg);
transition: 0.5s;
filter: blur(30px);
}
.box:hover:before,
.box:hover:after{
transform: skewX(0deg);
left: 20px;
width: calc(100% - 90px);
}
.box:nth-child(1):before,
.box:nth-child(1):after{
background: linear-gradient(315deg, #ffbc00, #ff0058)
}
.box:nth-child(2):before,
.box:nth-child(2):after{
background: linear-gradient(315deg, #03a9f4, #ff0058)
}
.box:nth-child(3):before,
.box:nth-child(3):after{
background: linear-gradient(315deg, #4dff03, #00d0ff)
}
.box span{
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 5;
pointer-events: none;
}
.box span::before{
content:'';
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
opacity: 0;
transition: 0.1s;
animation: animate 2s ease-in-out infinite;
box-shadow: 0 5px 15px rgba(0,0,0,0.08)
}
.container .box:hover span::before{
top: -50px;
left: 50px;
width: 100px;
height: 100px;
opacity: 1;
}
.container .box span::after{
content:'';
position: absolute;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
opacity: 0;
transition: 0.5s;
animation: animate 2s ease-in-out infinite;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
animation-delay: -1s;
}
.container .box:hover span:after{
bottom: -50px;
right: 50px;
width: 100px;
height: 100px;
opacity: 1;
}
@keyframes animate{
0%, 100%
{
transform: translateY(10px);
}
50%
{
transform: translate(-10px);
}
}
.box .content{
position: relative;
left: 0;
padding: 20px 40px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
border-radius: 8px;
z-index: 1;
transform: 0.5s;
color: #fff;
}
.box:hover .content{
left: -25px;
padding: 60px 40px;
}
.box .content h2{
font-size: 2em;
color: #fff;
margin-bottom: 10px;
}
.box .content p{
font-size: 1.1em;
margin-bottom: 10px;
line-height: 1.4em;
}
.box .content a{
display: inline-block;
font-size: 1.1em;
color: #111;
background: #fff;
padding: 10px;
border-radius: 4px;
text-decoration: none;
font-weight: 700;
margin-top: 5px;
}
.box .content a:hover{
background: #ffcf4d;
border: 1px solid rgba(255, 0, 88, 0.4);
box-shadow: 0 1px 15px rgba(1, 1, 1, 0.2);
}
👍26
HTML

<div class="container">
<div class="card">
<div class="face face1">
<div class="content">
<i class="fab fa-windows"></i>
<h3>Windows</h3>
</div>
</div>
<div class="face face2">
<div class="content">
<p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde ab repudiandae, explicabo voluptate et hic
cum ratione a.</p>
<a href="#" type="button">Read More</a>
</div>
</div>
</div>
<div class="card">
<div class="face face1">
<div class="content">
<i class="fab fa-android"></i>
<h3>Android</h3>
</div>
</div>
<div class="face face2">
<div class="content">
<p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde ab repudiandae, explicabo voluptate et hic
cum ratione a.</p>
<a href="#" type="button">Read More</a>
</div>
</div>
</div>
<div class="card">
<div class="face face1">
<div class="content">
<i class="fab fa-apple"></i>
<h3>Apple</h3>
</div>
</div>
<div class="face face2">
<div class="content">
<p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde ab repudiandae, explicabo voluptate et hic
cum ratione a.</p>
<a href="#" type="button">Read More</a>
</div>
</div>
</div>
</div>
<script src="https://kit.fontawesome.com/95a02bd20d.js"></script>
👍24❤18🔥1😁1
CSS

body{
display:flex;
margin:0;
padding:0;
min-height: 100vh;
background: #444;
justify-content: center;
align-items: center;
font-family: arial;
}
.container{
width: 1000px;
position: relative;
display: flex;
justify-content: space-between;
flex-wrap:wrap;
}
.card{
position: relative;
}
.face{
width:300px;
height: 200px;
transition:.4s;
}
.face1{
position: relative;
background: #333;
display: flex;
justify-content: center;
align-content:center;
align-items: center;
z-index: 1;
transform: translateY(100px);
}
.card:hover .face.face1{
transform: translateY(0);
box-shadow:
inset 0 0 60px whitesmoke,
inset 20px 0 80px #f0f,
inset -20px 0 80px #0ff,
inset 20px 0 300px #f0f,
inset -20px 0 300px #0ff,
0 0 50px #fff,
-10px 0 80px #f0f,
10px 0 80px #0ff;
}
.face.face1 .content{
opacity: .2;
transition: 0.5s;
text-align: center;
}
.card:hover .face.face1 .content{
opacity: 1;
}
.face.face1 .content i{
font-size: 3em;
color: white;
display: inline-block;
}
.face.face1 .content h3{
font-size: 1em;
color: white;
text-align: center;
}
.face.face1 .content a{
transition: .5s;
}
.face.face2{
position: relative;
background: whitesmoke;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
box-shadow: 0 20px 50px rgba(0,0,0,.8);
transform: translateY(-100px);
}
.card:hover .face.face2{
transform: translateY(0);
}
p, a{
font-size: 10pt;
margin: 0 ;
padding: 0;
color:#333;
}
a{
text-decoration:none;
color: black;
box-sizing: border-box;
outline : 1px dashed #333;
padding: 10px;
margin: 15px 0 0;
display: inline-block;
}
a:hover{
background: #333 ;
color: whitesmoke;
box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5);
}
👍37🔥10👎5❤2