html - Text moving with transform grow -


i have 2 thing trying solve.

  1. the moving text, when hover on link.
  2. (smaller) span elements not equal (or circle quarter isn't, shouldn't possible, since width , height match.)

it possible solve first problem giving link position: absolute, not option. component used within flexbox, absolute kill.

body{              margin: 0;          }  p{    position: relative;  }  a{              transition: .2s ease-in-out;              display:block;              box-sizing: border-box;              /* position: absolute; */              font: 18px monaco, monospace;              color: #fff;          }          a:hover{              transform: scale(1.1);          }            a#top-left-circle{              width: 90px;              height: 90px;              background: #006699;              border-radius: 0 0 90px 0;              -webkit-border-radius: 0 0 90px 0;              border: 2px dashed #fff;              box-shadow: -1px -1px 3px 5px rgba(0, 102, 153, 0.7), 2px 2px 6px 4px rgba(10, 10, 0, 0.5);              }          span {              font: 14px monaco, monospace;              line-height: 150px;              height: inherit;              position: absolute;              left: 0;              top: 0;              transform-origin: top center;          }  .char1 { transform: rotate(-15deg); }          .char2 { transform: rotate(-30deg); }          .char3 { transform: rotate(-45deg); }          .char4 { transform: rotate(-60deg); }          .char5 { transform: rotate(-75deg); }
<div>      <a href="#skills" id="top-left-circle" class="panel" aria-label="hello">          <span class="char1" aria-hidden="true">h</span>          <span class="char2" aria-hidden="true">h</span>          <span class="char3" aria-hidden="true">h</span>          <span class="char4" aria-hidden="true">h</span>          <span class="char5" aria-hidden="true">h</span>      </a>  </div>

simple: add a element

transform: translatez(0); 

in order tell him:

"hey bro, prepare enhancendly transformed!"

so when transform on :hover - it'll respond you

"i knew hahaaaaa!"

jsbin demo

here's demo on how radially rotate characters in circle


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -