miladsciphy / I-m-bored.What-should-I-do-

0 stars 0 forks source link

Some css #2

Open farzadfaal opened 1 year ago

farzadfaal commented 1 year ago

style.css

* {
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}
html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    font-size: 2rem;
    background-color: aliceblue;
    margin: 4rem 0;
}

.btn {
  box-shadow: 0 10px 18px rgba(0,0,0,0.05);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: auto;
    font-size: 2rem;
    border: transparent;
    border-radius: 9rem;
    padding: 1rem;
    color: orange;
    cursor: pointer;
    position: relative;
    z-index: 1;
    background-color: white;
    animation: scale ease-in-out infinite alternate-reverse 0.75s;
    transition: all ease-in-out 0.2s;
}
.btn:hover {
  background-color: orange;
  color: white
}
.btn:berfor, .btn:after{
  z-index: -1;
}
.btn:before{
  content: "";
  display: block;
  position: absolute;
  animation: glow ease-out infinite 0.5s;
  border: 2px solid orange;
  border-radius: 1000px;
}
.btn:after{
  content: "";
  display: block;
  position: absolute;
  animation: glow ease-out infinite 0.5s;
  animation-delay: 0.4s;
  border: 2px solid rgba(244,140,0,0.1);
  border-radius: 1000px;
}

.what {
    display: block;
    margin-top: 8rem;
    margin: auto;
    height: 900x;
    width: 900px;
    border-radius: 8rem;
}

.text {
    text-align: center;
    font-size: 4rem;
    margin-top: 3rem;
    color: red;
}

.hidden {
    display: none;
}

@keyframes glow {
    0% {
        inset: 0;
        opacity: 0;
    }
    40% {
      opacity: 1;
    }
    100% {
        inset: -10px;
        opacity: 0;
    }
}

@keyframes scale {
  from {
        transform: scale(1);
    }
    to {
      transform: scale(1.01);
    }
}
miladsciphy commented 1 year ago

thank you sir for making this look better