楽天マガジン

拡大、ズームのアイコン

カテゴリ動作アイコン
楽天トラベル
<span class="dli-zoom-in"><span></span></span>
.dli-zoom-in {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  width: 0.7em;
  height: 0.7em;
  border: 0.1em solid currentColor;
  border-radius: 50%;
  box-sizing: content-box;
  position: relative;
}

.dli-zoom-in::before {
  content: '';
  position: absolute;
  top: calc(85.35534% + 0.07071em);
  left: calc(85.35534% + 0.07071em);
  width: 0.336em;
  height: 0.1em;
  background: currentColor;
  border-radius: 0 0.1em 0.1em 0;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: left center;
}

.dli-zoom-in > span {
  width: 58%;
  height: 0.1em;
  background: currentColor;
  border-radius: 0.1em;
  position: relative;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.dli-zoom-in > span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}

Recommend

同じカテゴリのアイコン

楽天カード
  1. CSS LABORATORY
  2. 動作
  3. 拡大、ズーム

カテゴリ

お気に入りリストに追加しました

お問い合わせを送信しました