css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <svg version="1.1" id="wrapper"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 500 200">
  
  <defs>
    <font>
      <font-face font-family="GeosansLight">
        <font-face-src>
          <font-face-uri xlink:href="http://www.satuweb.it/fonts/geosanslight.svg#geosanslightregular" />
        </font-face-src>
      </font-face>
      <font-face font-family="Intro">
        <font-face-src>
          <font-face-uri xlink:href="http://www.satuweb.it/fonts/Intro.svg#Intro" />
        </font-face-src>
      </font-face>
    </font>
    
  </defs>
  
  <g class="logo" >
    <circle class="circle" cx="100" cy="100" r="60" stroke="black" stroke-width="0.25" fill="transparent" vector-effect="non-scaling-stroke" />
    <circle class="circle" cx="100" cy="100" r="55" stroke="black" stroke-width="0.5" fill="transparent" vector-effect="non-scaling-stroke" />
    <circle class="circle" cx="100" cy="100" r="50" stroke="black" stroke-width="0.75" fill="transparent" vector-effect="non-scaling-stroke" />
    <circle class="circle" cx="100" cy="100" r="45" stroke="black" stroke-width="1" fill="transparent" vector-effect="non-scaling-stroke" />
    <circle class="circle circle--full" cx="100" cy="100" r="40" stroke="black" stroke-width="1.25" fill="black" vector-effect="non-scaling-stroke" />
    
    <path class="arrow arrow--top" d="M110,100.7L90,90.3L110,80" stroke="white" stroke-width="1.5" fill="transparent" vector-effect="non-scaling-stroke"/>
  
    <path class="arrow arrow--bottom" d="M90,99.3l20,10.3L90,120" stroke="white" stroke-width="1.5" fill="transparent" vector-effect="non-scaling-stroke"/>
  </g>

    <text id="satu" class="text" x="170" y="90" fill="black" textLength="100" font-family="GeosansLight" font-size="50">
      <tspan class="text__char" textLength="105">s</tspan>
      <tspan class="text__char" textLength="105">a</tspan>
      <tspan class="text__char" textLength="105">t</tspan>
      <tspan class="text__char" textLength="105">u</tspan>
    </text>

    <text id="web" class="text" x="300" y="90" fill="black" textLength="100" font-family="Intro" font-size="30">
      <tspan class="text__char" textLength="105">w</tspan>
      <tspan class="text__char" textLength="105">e</tspan>
      <tspan class="text__char" textLength="105">b</tspan>
  </text>
 
    <line class="line" x1="170" y1="100" x2="400" y2="100"  stroke="black" stroke-width="1" fill="black" vector-effect="non-scaling-stroke"/>
  
    <text id="motto" class="text" x="170" y="120" fill="black" textLength="232" font-family="GeosansLight" font-size="12"> 
      <tspan class="text__word" textLength="232">.smartness</tspan> 
      <tspan class="text__word" textLength="232">.virtuosity</tspan>
      <tspan class="text__word" textLength="232">.creativity</tspan>
  </text>
 
  

</svg> 
 
            
          
!
            
              @import url("http://www.satuweb.it/css/fonts.css");
$ease: cubic-bezier(0.9, 0, 0.2, 1);

body{
  background: radial-gradient(ellipse farthest-corner at center top, #FFF 0%, #BBB 100%);
}

#wrapper{
  max-width: 1000px;
  max-heigth: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}
.circle {
  transform-style: preserve-3d;
  transform: scale(0, 0) translate(-50%, -50%) perspective(600px) rotateY(20deg) rotateX(10deg);
  transform-origin: 50% 50%;
  
  &:nth-child(1){
    opacity: 0;
    animation: opacity 3s linear forwards alternate infinite 3.75s, scale 2s $ease forwards 3.75s;
  }
  &:nth-child(2){
    opacity: 0;
    animation: opacity 3s linear forwards alternate infinite 3.5s, scale 2s $ease forwards 3.5s;
  }
  &:nth-child(3){
    opacity: 0;
    animation: opacity 3s linear forwards alternate infinite 3.25s, scale 2s $ease forwards 3.25s;
  }
  &:nth-child(4){
    opacity: 0;
    animation: opacity 3s linear forwards alternate infinite 3s, scale 2s $ease forwards 3s;
  }
  
  &--full{
    opacity: 0;
    transform: scale(0, 0);
    transform-origin: 50% 50%;
    animation: opacity-full 0.25s linear forwards 0s, scale 2s $ease forwards 0s;
  }
  
}

.arrow{
 stroke-dasharray: 1000;
 stroke-dashoffset: 1000;
 animation: dash 2s $ease alternate forwards 3s;
}

.text{
  
  &__char{
    opacity: 0;
    
    &:nth-of-type(1){
      animation: opacity-full 1.25s linear forwards 4s;
      }
    &:nth-of-type(2){
      animation: opacity-full 1.25s linear forwards 4.25s;
      }
    &:nth-of-type(3){
      animation: opacity-full 1.25s linear forwards 4.5s;
      }
    &:nth-of-type(4){
      animation: opacity-full 1.25s linear forwards 4.75s;
      }
  }
  
  &__word{
    opacity: 0;
    
    &:nth-of-type(1){
      animation: opacity-full 1.25s linear forwards 4.75s;
      }
    &:nth-of-type(2){
      animation: opacity-full 1.25s linear forwards 5s;
      }
    &:nth-of-type(3){
      animation: opacity-full 1.25s linear forwards 5.25s;
      }
    &:nth-of-type(4){
      animation: opacity-full 1.25s linear forwards 5.5s;
      }
  }
  
}

.line{
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 2s $ease alternate forwards 3s;
}

@keyframes dash {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes opacity {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes opacity-full {
  0% {
    opacity: 0;
  }
  
  100% {
    opacity: 1;
  }
}


@keyframes scale {
  0% {
    transform: scale(0, 0);
  }
  50%{
    transform: scale(1.2, 1.2);
  }
  100% {
    transform: scale(1, 1);
  }
}
            
          
!
            
              var $wrap = $('#wrapper'),
    $circle = $('.circle'),
    cFollowX = 0,
    cFollowY = 0,
    x = 0,
    y = 0,
    friction = 1 / 12;

function animate() {
  x += (cFollowX - x) * friction;
  y += (cFollowY - y) * friction;

  $circle.css({
    'transform': 'translate(' + x + 'px, ' + y + 'px)'
  });
   
 $wrap.css({
    'transform': 'translate(-50%, -50%) perspective(600px) rotateY(' + -x + 'deg) rotateX(' + y + 'deg)'
  });
  
  window.requestAnimationFrame(animate);
}

$(window).on('mousemove', function(e) {

  var cMouseX = Math.max(-100, Math.min(100, $(window).width() / 2 - e.clientX));
  var cMouseY = Math.max(-100, Math.min(100, $(window).height() / 2 - e.clientY));
  cFollowX = (12 * cMouseX) / 100;
  cFollowY = (10 * cMouseY) / 100;

});

$(window).on('mouseleave', function(e) {

  cFollowX = 0;
  cFollowY = 0;

});

animate();
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console