リンクボタン – 007

プレビュー

コードの紹介

headエリアに記載するコード

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />

html

<a href="#" class="cLinkButton_0007">1st code</a>

CSS

.cLinkButton_0007 {
  font-weight: bold;
  background: transparent;
  border: 2px solid #6b6b6b;
  padding-left: 24px;
  padding-block: 8px;
  padding-right: 8px;
  text-decoration: none;
  color: #000;
  border-radius: 100px;

  display: inline-flex;
  align-items: center;
  gap: 16px;

  /*   transition: all 0.8s; */
  transition: all 0.1s ease-out;
}

.cLinkButton_0007::after {
  font-family: "Material Symbols Outlined";
  content: "\e941";
  background: #0f0f0f;
  color: #fff;
  border-radius: 100px;
  font-size: 1.75rem;
  font-weight: 200;
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  transition: transform 0.3s ease;
}
.cLinkButton_0007:hover {
  background: #ebebeb24;
}

.cLinkButton_0007:hover::after {
  transform: scale(1.15);
}