C
C
Cosmonaut.2018-09-08 15:01:59
css
Cosmonaut., 2018-09-08 15:01:59

How to properly resize a 3D logo?

Hello! help me please!
5b93b9c75f49f178494781.jpeg
how to resize the 3D logo correctly?
link to original logo

.coin {
  position: relative;
  width: 245px;
  height: 245px;
  margin: 50px auto;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-animation: rotate3d 8s linear infinite;
          animation: rotate3d 8s linear infinite;
  transition: all .3s;
}

.coin__front,
.coin__back {
  position: absolute;
  width: 245px;
  height: 245px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #E8D0BB;
}
.coin__front:after,
.coin__back:after {
  content: "";
  position: absolute;
  left: -150px;
  bottom: 100%;
  display: block;
  height: 200px;
  width: 600px;
  background: #fff;
  opacity: 0.3;
  -webkit-animation: shine linear 4s infinite;
          animation: shine linear 4s infinite;
}

.coin__front {
  background-image: url("../../images/emblem.png");
  background-size: cover;
  -webkit-transform: translateZ(10px);
          transform: translateZ(10px);
}

.coin__back {
  background-image: url("../../images/emblem.png");
  background-size: cover;
  -webkit-transform: translateZ(-10px) rotateY(180deg);
          transform: translateZ(-10px) rotateY(180deg);
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2018-09-08
@LenovoId

https://codepen.io/topicstarter/pen/YOEMQb?editors=1100
you can do the same but scale();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question