cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div>
<a id="social-link" href="https://facebook.com/samrose.me" target="_blank" rel="noppener">
<svg width="250px" height="250px" viewBox="0 0 115 115" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
  <linearGradient id="LIN" gradientUnits="userSpaceOnUse" x1="10.7734" y1="17.9984" x2="63.2366" y2="70.4616" gradientTransform="matrix(1 0 0 -1 0 86)">
  <stop offset="0" style="stop-color:#4162AD"></stop>
  <stop offset="0.6711" style="stop-color:#329A87"></stop>
  <stop offset="0.7515" style="stop-color:#30A182"></stop>
  <stop offset="1" style="stop-color:#2AB674"></stop>
  </linearGradient>
</defs>
<g>
<path id="facebook" d="M56.301,1.301c30.356,0 55,24.645 55,55c0,30.356 -24.644,55 -55,55c-30.355,0 -55,-24.644 -55,-55c0,-30.355 24.645,-55 55,-55Zm15.259,33.019l0,-12.51l-11.234,-0.047c-12.468,0 -15.301,9.339 -15.301,15.303l0,8.34l-7.213,0l0,12.888l7.213,0l0,36.672l15.166,0l0,-36.672l10.01,0l1.325,-12.876l-11.334,0l0,-7.585c0,-2.845 1.88,-3.513 3.217,-3.513l8.151,0Z"/>
<path id="instagram" d="M56.3,1.3c-30.374,0 -55,24.626 -55,55c0,30.374 24.626,55 55,55c30.374,0 55,-24.626 55,-55c0,-30.374 -24.626,-55 -55,-55Zm16.393,88.232c9.204,0 16.691,-7.486 16.691,-16.691l0,-32.785c0,-9.204 -7.487,-16.692 -16.691,-16.692l-32.786,0c-9.203,0 -16.691,7.488 -16.691,16.692l0,32.785c0,9.205 7.488,16.691 16.691,16.691l32.786,0Zm0,-58.967c5.234,0 9.491,4.258 9.491,9.491l0,32.785c0,5.234 -4.258,9.491 -9.491,9.491l-32.786,0c-5.232,0 -9.49,-4.258 -9.49,-9.491l0,-32.785c0,-5.233 4.257,-9.491 9.49,-9.491l32.786,0Zm-16.393,42.925c-9.396,0 -17.041,-7.644 -17.041,-17.042c0,-9.396 7.645,-17.041 17.041,-17.041c9.397,0 17.042,7.645 17.042,17.041c0,9.396 -7.646,17.042 -17.042,17.042Zm0,-26.881c-5.424,0 -9.841,4.414 -9.841,9.838c0,5.427 4.417,9.842 9.841,9.842c5.427,0 9.84,-4.415 9.84,-9.842c0,-5.423 -4.415,-9.838 -9.84,-9.838Zm17.59,-3.678c-2.224,0 -4.033,-1.809 -4.033,-4.032c0,-2.223 1.809,-4.032 4.033,-4.032c2.223,0 4.032,1.809 4.032,4.032c0,2.223 -1.809,4.032 -4.032,4.032Z"/>
<path id="linkedin" d="M56.3,1.3c30.355,0 55,24.645 55,55c0,30.355 -24.645,55 -55,55c-30.355,0 -55,-24.645 -55,-55c0,-30.355 24.645,-55 55,-55Zm32.862,82.101l0,-22.675c0,-12.143 -6.485,-17.794 -15.134,-17.794c-6.985,0 -10.101,3.843 -11.848,6.531l0,0.13l-0.088,0c0.024,-0.042 0.061,-0.085 0.088,-0.13l0,-5.603l-13.149,0c0.177,3.709 0,39.54 0,39.54l13.148,0l0,-22.083c0,-1.185 0.089,-2.359 0.435,-3.204c0.953,-2.365 3.111,-4.807 6.743,-4.807c4.76,0 6.658,3.627 6.658,8.939l0,21.156l13.147,0Zm-47.4,-39.541l-13.142,0l0,39.541l13.142,0l0,-39.541Zm-6.484,-19.059c-4.498,0 -7.44,2.952 -7.44,6.83c0,3.797 2.857,6.834 7.267,6.834l0.085,0c4.586,0 7.437,-3.037 7.437,-6.834c-0.087,-3.878 -2.851,-6.83 -7.349,-6.83Z"/>
<path id="soundcloud" d="M56.3,1.3c30.355,0 55,24.645 55,55c0,30.355 -24.645,55 -55,55c-30.355,0 -55,-24.645 -55,-55c0,-30.355 24.645,-55 55,-55Zm-19.46,71.642l0,-0.005c-0.02,0.37 -0.313,0.666 -0.676,0.666c-0.356,0 -0.65,-0.296 -0.668,-0.666l-0.584,-8.452l0.584,-16.178c0.018,-0.371 0.312,-0.664 0.668,-0.664c0.363,0 0.656,0.293 0.676,0.664l0.657,16.178l-0.657,8.457Zm16.978,-1.173l-0.043,0.802c-0.005,0.28 -0.122,0.533 -0.302,0.715c-0.184,0.179 -0.437,0.294 -0.704,0.294c-0.312,0 -0.587,-0.143 -0.775,-0.369c-0.139,-0.163 -0.226,-0.375 -0.235,-0.598c-0.003,-0.009 -0.003,-0.022 -0.003,-0.036c0,0 -0.388,-8.124 -0.388,-8.137l0.383,-20.043l0.005,-0.193c0.003,-0.351 0.189,-0.663 0.467,-0.843c0.156,-0.104 0.341,-0.164 0.546,-0.164c0.202,0 0.394,0.062 0.553,0.173c0.272,0.182 0.449,0.486 0.454,0.835l0.426,20.244l-0.384,7.32Zm-3.472,0.864l0,-0.007c-0.008,0.529 -0.426,0.935 -0.941,0.935c-0.52,0 -0.932,-0.406 -0.947,-0.928l-0.42,-8.189l0.421,-17.007c0.015,-0.528 0.427,-0.94 0.947,-0.94c0.515,0 0.933,0.412 0.941,0.94l0.475,17.012l-0.476,8.184Zm-6.779,0.122c-0.015,0.45 -0.367,0.801 -0.806,0.801c-0.439,0 -0.791,-0.351 -0.807,-0.797l-0.506,-8.316l0.506,-18.116c0.016,-0.451 0.368,-0.802 0.807,-0.802c0.439,0 0.791,0.351 0.806,0.802l0.562,18.116l-0.562,8.312Zm42.775,0.798c5.41,-0.001 9.797,-4.342 9.797,-9.755c0,-5.414 -4.387,-9.802 -9.797,-9.802c-1.342,0 -2.626,0.276 -3.789,0.762c-0.785,-8.829 -8.189,-15.76 -17.223,-15.76c-2.215,0 -4.37,0.436 -6.273,1.173c-0.737,0.283 -0.934,0.578 -0.944,1.151l0,31.103c0.01,0.601 0.473,1.068 1.06,1.128l27.169,0Zm-39.399,-0.871l0,-0.005c-0.016,0.485 -0.395,0.871 -0.877,0.871c-0.474,0 -0.861,-0.386 -0.87,-0.866l-0.465,-8.237l0.46,-17.653c0.014,-0.492 0.4,-0.873 0.875,-0.873c0.482,0 0.861,0.381 0.877,0.873l0.521,17.653l-0.521,8.237Zm-13.356,0.265l0,-0.005c-0.019,0.335 -0.285,0.6 -0.604,0.6c-0.321,0 -0.587,-0.266 -0.605,-0.595l-0.619,-8.507l0.619,-13.167c0.018,-0.335 0.284,-0.6 0.605,-0.6c0.32,0 0.586,0.266 0.604,0.595l0.701,13.172l-0.701,8.507Zm6.626,-0.136l0,-0.005c-0.015,0.413 -0.339,0.734 -0.738,0.734c-0.399,0 -0.724,-0.321 -0.738,-0.729l-0.543,-8.366c0,0 0.543,-17.526 0.543,-17.531c0.015,-0.407 0.339,-0.734 0.738,-0.734c0.399,0 0.724,0.327 0.738,0.734l0.613,17.531l-0.613,8.366Zm16.978,-0.345l0,-0.01c-0.007,0.593 -0.492,1.075 -1.078,1.075c-0.589,0 -1.073,-0.482 -1.079,-1.07l-0.222,-3.951l-0.219,-4.057l0.441,-21.967l0,-0.111c0.001,-0.333 0.158,-0.631 0.4,-0.832c0.186,-0.152 0.424,-0.245 0.679,-0.245c0.203,0 0.391,0.056 0.552,0.15c0.307,0.193 0.521,0.533 0.531,0.922l0.478,22.082l-0.483,8.014Zm-26.88,0.476c-0.017,0.303 -0.253,0.527 -0.533,0.527c-0.288,0 -0.516,-0.224 -0.536,-0.527l-0.663,-8.507l0.663,-8.093c0.021,-0.301 0.248,-0.525 0.536,-0.525c0.285,0 0.516,0.224 0.533,0.521l0.751,8.097l-0.751,8.507Zm-3.245,-0.068c-0.024,0.261 -0.228,0.458 -0.47,0.458c-0.248,0 -0.451,-0.197 -0.472,-0.458l-0.701,-8.438l0.701,-8.723c0.021,-0.263 0.224,-0.46 0.472,-0.46c0.242,0 0.446,0.197 0.47,0.46l0.795,8.723l-0.795,8.438Zm-3.228,-0.26c-0.022,0.228 -0.193,0.39 -0.398,0.39c-0.212,0 -0.379,-0.162 -0.4,-0.39l-0.742,-8.178l0.742,-8.49c0.019,-0.23 0.188,-0.395 0.4,-0.395c0.205,0 0.375,0.165 0.398,0.395l0.842,8.49l-0.842,8.178Zm-3.196,-1.185c-0.028,0.189 -0.165,0.322 -0.334,0.322c-0.165,0 -0.309,-0.133 -0.332,-0.322l-0.782,-6.999l0.782,-7.156c0.024,-0.185 0.167,-0.322 0.332,-0.322c0.169,0 0.306,0.134 0.334,0.322l0.89,7.156l-0.89,6.999Zm-2.962,-2.643c-0.026,0.178 -0.154,0.306 -0.32,0.306c-0.165,0 -0.293,-0.128 -0.318,-0.31l-0.582,-4.351l0.582,-4.424c0.024,-0.184 0.152,-0.312 0.318,-0.312c0.165,0 0.293,0.128 0.32,0.312l0.692,4.429l-0.692,4.35Z"/>
<path id="twitter" d="M56.3,1.3c30.355,0 55,24.645 55,55c0,30.355 -24.645,55 -55,55c-30.355,0 -55,-24.645 -55,-55c0,-30.355 24.645,-55 55,-55Zm33.689,39.527c-2.357,1.045 -4.892,1.752 -7.551,2.068c2.715,-1.627 4.798,-4.201 5.782,-7.272c-2.541,1.507 -5.355,2.6 -8.349,3.189c-2.398,-2.554 -5.814,-4.15 -9.598,-4.15c-7.259,0 -13.146,5.887 -13.146,13.147c0,1.03 0.116,2.033 0.342,2.996c-10.926,-0.548 -20.614,-5.782 -27.098,-13.738c-1.132,1.941 -1.781,4.201 -1.781,6.61c0,4.56 2.323,8.586 5.848,10.943c-2.154,-0.068 -4.182,-0.659 -5.954,-1.647c-0.001,0.056 -0.001,0.112 -0.001,0.167c0,6.37 4.534,11.683 10.547,12.89c-1.102,0.302 -2.266,0.462 -3.463,0.462c-0.849,0 -1.672,-0.082 -2.474,-0.235c1.673,5.222 6.527,9.023 12.281,9.13c-4.5,3.527 -10.168,5.628 -16.329,5.628c-1.059,0 -2.108,-0.062 -3.134,-0.185c5.815,3.732 12.727,5.907 20.15,5.907c24.182,0 37.406,-20.032 37.406,-37.406c0,-0.57 -0.013,-1.137 -0.039,-1.7c2.571,-1.853 4.8,-4.168 6.561,-6.804Z"/>
</g>
</svg>
</a>
</div>
            
          
!
            
              body
  display: flex
  align-items: center
  height: 100vh
  
div
  margin: auto
  width: 250px
  
svg
  stroke: url(#LIN)
  fill: none

svg path:not(#facebook)
  display: none

            
          
!
            
              const a = document.querySelector('#social-link');
const morphTimeline = new TimelineMax({ 
  repeat:-1,
  repeatDelay:1
}); 

morphTimeline
  .to('#facebook', 2, {morphSVG: {shape: '#twitter'}})
  .call(link, ['twitter'])
  .to('#facebook', 2, {morphSVG: {shape: '#instagram'}}, '+=1')
  .call(link, ['instagram'])
  .to('#facebook', 2, {morphSVG: {shape: '#linkedin'}}, '+=1')
  .call(link, ['linkedin'])
  .to('#facebook', 2, {morphSVG: {shape: '#soundcloud'}}, '+=1')
  .call(link, ['soundcloud'])
  .to('#facebook', 2, {morphSVG: {shape: '#facebook'}}, '+=1')
  .call(link, ['facebook']);

function link(social) {
  switch (social) {
    case 'twitter':
      a.href = 'https://twitter.com/_samrose3_'
      break;
    case 'instagram':
      a.href = 'https://instagram.com/_samrose3_/'
      break;
      case 'soundcloud':
      a.href = 'https://soundcloud.com/samrose14'
      break;
    default:
      a.href = 'https://facebook.com/samrose.me';
  }
}
            
          
!
999px
Loading ..................

Console