<main>
  
  <div class="CodeMareFi-CMF">
    
    <p CMF-ipucu="CodeMareFi İpucu Yazı">
          Bir ipucu görmek için üzerime gelin
    </p>

    <a href="https://codemarefi.blogspot.com" 
       CMF-ipucu="Bu bir link Tıklama :D"
       CMF-ipucu-alan="right">
          İpucu link şeklinde
    </a>
    
    <button
       CMF-ipucu="Bu bir buton :D"
       CMF-ipucu-alan="left">
          CMF- Buton
    </button>
    
  </div>
  
  
  
  
  <div class="CMF-baslik">
    <p>
      <span class="CMF-Baslar">
        Basit, animasyonlu ve kullanımı kolay bir ipucu aracı ister misiniz?
      </span>
      <span>
        Sadece tüm CSS bildirimi bloklarını kopyalayın.
        <code>[CMF-ipucu].</code>
      </span>
    </p>
    <p 
       CMF-ipucu="Bu, birden çok satırın üzerinden geçen süper uzun bir araç ipucu metnine bir örnektir. &#xa; &#xa; Not: Araç ipucu boyutu, içeriğe göre dinamik olarak ayarlanır. Bununla birlikte, minimum ve maksimum genişlik tanımlanmıştır."
       CMF-ipucu-alan="bottom">
      Araç ipucunu kullanmak için, »ipucu-alanı« niteliğini istenen metinle bir öğeye eklemeniz yeterlidir. Not: Uzun bir ipucu görmek için yazının üzerine gelin.
    </p>
  </div>
</main>
/* 
  Basit ve şık bir ipucu ister misin?
  Tüm [CMF-ipucu kopyalamanız yeterlidir:
*/
[CMF-ipucu] {
  position: relative;
  z-index: 10;
}

/* Araç ipucunun konumlandırma ve görünürlük ayarları */
[CMF-ipucu]:before,
[CMF-ipucu]:after {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  left: 50%;
  bottom: calc(100% + 5px); /* 5px Okların boyutu */
  pointer-events: none;
  transition: 0.2s;
  will-change: transform;
}

/* Dinamik genişliğe sahip gerçek ipucu alanı */
[CMF-ipucu]:before {
  content: attr(CMF-ipucu);
  padding: 10px 18px;
  min-width: 50px;
  max-width: 300px;
  width: max-content;
  width: -moz-max-content;
  border-radius: 6px;
  font-size: 14px;
  background-color: rgba(59, 72, 80, 0.9);
  background-image: linear-gradient(30deg,
    rgba(59, 72, 80, 0.44),
    rgba(59, 68, 75, 0.44),
    rgba(60, 82, 88, 0.44));
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: center;
  white-space: pre-wrap;
  transform: translate(-50%, -5px) scale(0.5);
}

/* Tooltip okları */
[CMF-ipucu]:after {
  content: '';
  border-style: solid;
  border-width: 5px 5px 0px 5px; /* CSS triangle */
  border-color: rgba(55, 64, 70, 0.9) transparent transparent transparent;
  transition-duration: 0s; /* fare imleci ayrıldığında okun kapanma süresi */
  transform-origin: top;   /* Aşağı kayma efekti */
  transform: translateX(-50%) scaleY(0);
}

/* imleç üzerine geldiğinde görünür hale gelmesi */
[CMF-ipucu]:hover:before,
[CMF-ipucu]:hover:after {
  visibility: visible;
  opacity: 1;
}
/* İpucu akran geliş süresi 0.5 ila 1 -> grow efekti */
[CMF-ipucu]:hover:before {
  transition-delay: 0.3s;
  transform: translate(-50%, -5px) scale(1);
}
/* 
  Ok kaydırma efekti yalnızca fare girişinde (fare alanında DEĞİL)
*/
[CMF-ipucu]:hover:after {
  transition-delay: 0.5s; /* Ok efekti geçikme süresi */
  transition-duration: 0.2s;
  transform: translateX(-50%) scaleY(1);
}
/*
  Bu kadar CMF- @MareFi.
*/






/*
  Biraz ayarlanabilirlik istiyorsanız
  kullanabileceğiniz bazı yön ayarları şunlardır:
*/

/* Sol */
/* Tooltip + okları */
[CMF-ipucu-alan="left"]:before,
[CMF-ipucu-alan="left"]:after {
  left: auto;
  right: calc(100% + 5px);
  bottom: 50%;
}

/* ipucu */
[CMF-ipucu-alan="left"]:before {
  transform: translate(-5px, 50%) scale(0.5);
}
[CMF-ipucu-alan="left"]:hover:before {
  transform: translate(-5px, 50%) scale(1);
}

/* Oklar */
[CMF-ipucu-alan="left"]:after {
  border-width: 5px 0px 5px 5px;
  border-color: transparent transparent transparent rgba(55, 64, 70, 0.9);
  transform-origin: left;
  transform: translateY(50%) scaleX(0);
}
[CMF-ipucu-alan="left"]:hover:after {
  transform: translateY(50%) scaleX(1);
}



/* Sağ */
[CMF-ipucu-alan="right"]:before,
[CMF-ipucu-alan="right"]:after {
  left: calc(100% + 5px);
  bottom: 50%;
}

[CMF-ipucu-alan="right"]:before {
  transform: translate(5px, 50%) scale(0.5);
}
[CMF-ipucu-alan="right"]:hover:before {
  transform: translate(5px, 50%) scale(1);
}

[CMF-ipucu-alan="right"]:after {
  border-width: 5px 5px 5px 0px;
  border-color: transparent rgba(55, 64, 70, 0.9) transparent transparent;
  transform-origin: right;
  transform: translateY(50%) scaleX(0);
}
[CMF-ipucu-alan="right"]:hover:after {
  transform: translateY(50%) scaleX(1);
}



/* Alt */
[CMF-ipucu-alan="bottom"]:before,
[CMF-ipucu-alan="bottom"]:after {
  top: calc(100% + 5px);
  bottom: auto;
}

[CMF-ipucu-alan="bottom"]:before {
  transform: translate(-50%, 5px) scale(0.5);
}
[CMF-ipucu-alan="bottom"]:hover:before {
  transform: translate(-50%, 5px) scale(1);
}

[CMF-ipucu-alan="bottom"]:after {
  border-width: 0px 5px 5px 5px;
  border-color: transparent transparent rgba(55, 64, 70, 0.9) transparent;
  transform-origin: bottom;
}










/* Alan ayarları */
html {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  color: white;
  font-size: 1.2em;
  background: linear-gradient(45deg, #000000, #d12c2c, #000000);
  background-size: 120% 120%;
  animation: moveFocus 5s ease infinite alternate;
}
@keyframes moveFocus { 
  0%   { background-position: 0% 100% }
  100% { background-position: 100% 0% }
}

body {
  background: none;    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

main {
  padding: 0 4%;
  display: flex;
  flex-direction: row;
  margin: auto 0;
}

button {
  margin: 0;
  padding: 0.7rem 1.4rem;

  cursor: pointer;
  text-align: center;
  border: none;
  border-radius: 4px;
  outline: inherit;
  text-decoration: none;
  font-family: Roboto, sans-serif;
  font-size: 0.7em;
  background-color: rgba(174, 184, 192, 0.55);
  color: white;

  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background 350ms ease-in-out, 
              transform 150ms ease;
}
button:hover {
  background-color: #484f56;
}
button:active {
  transform: scale(0.98);
}
button:focus {
  box-shadow: 0 0 2px 2px #298bcf;
}
button::-moz-focus-inner {
  border: 0;
}

.CodeMareFi-CMF {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
  text-align: center;
  padding-right: 4%;
}

.CodeMareFi-CMF p {
  padding: 6px;
  display: inline-block;
  margin-bottom: 5%;
  color: #fff;
}
.CodeMareFi-CMF p:hover {
  border-left: 1px solid lightgrey;
  border-right: 1px solid lightgrey;
  padding-left: 5px;
  padding-right: 5px;
}

.CodeMareFi-CMF a {
  margin-left: 6px;
  margin-bottom: calc(5% + 10px);
  color: #76daff;
  text-decoration: none;
}
.CodeMareFi-CMF a:hover {
  margin-bottom: calc(5% + 9px);
  border-bottom: 1px solid #76daff;
}

.CodeMareFi-CMF button {
  margin-bottom: 20px;
}

.CMF-baslik {
  flex-grow: 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  padding-left: 6%;
  border-left: 3px solid #ffeb3ba6;
}

.CMF-baslik p {
  color: rgba(255, 255, 255, 0.69);
}
.CMF-baslik p {
  max-width: 600px;
  text-align: justify;
}

.CMF-baslik .CMF-Baslar {
  display: block;
  color: #fff;
  font-size: 1.36em;
  font-weight: 500;
  padding-bottom: 24px;
}


@media (max-height: 450px) {
  main {
    margin: 2rem 0;
  }
}

@media (max-width: 800px) {
  html {
    font-size: 0.9em;
  }
}

/* Görsel alan */
@media (max-width: 750px) {
  html {
    animation-duration: 0.6s;
    font-size: 1em;
  }
  body {
    display: flex;
    background: none;
    height: 100%;
    margin: 0px;
  }
  main {
    font-size: 1.1em;
    padding: 6%;
  }
  .CMF-alan p:before,
  .CMF-alan p:after {
    display: none;
  }
  .CodeMareFi-CMF {
    max-width: 150px;
    font-size: 22px;
  }
  .CodeMareFi-CMF a, button {
    display: none;
  }
  .CodeMareFi-CMF p:before, 
  .CodeMareFi-CMF p:after {
    visibility: visible;
    opacity: 1;
  }
  .CodeMareFi-CMF p:before {
    content: "CMF";
    font-size: 20px;
    transform: translate(-50%, -5px) scale(1);
  }
  .CodeMareFi-CMF p:after {
    transform: translate(-50%, -1px) scaleY(1);
  }
  
  
  [i]:after {
    bottom: calc(100% + 3px);
  }
  [CMF-ipucu]:after {
    border-width: 7px 7px 0px 7px;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.