Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Margus Lillemägi | codepen.io/VisualAngle/-->

<div id="container">

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMin slice" viewBox="0 0 300 600">
            <defs>
                <!--Banner SVG style here:-->
                <style type="text/css">
                    <![CDATA[
                          /*Link your web fonts here*/
                          @import url( 'https://fonts.googleapis.com/css?family=Bevan');
                          @import url( 'https://fonts.googleapis.com/css?family=Ubuntu:500');
                          /*Text style here*/
                          text{
                              font-family: "Helvetica", "Verdana", "Sans-Serif";
                          }
                          .headline-txt, .logo-txt{
                              font-family: "Bevan", "Sans-Serif";
                              font-size: 33px;
                              font-weight:500;
                          }
                          .logo-txt{
                          font-size: 60px;
                          }
                          .button-txt,
                          .subline-txt {
                              font-family: "Ubuntu", "Sans-Serif";
                              font-size: 28px;
                              font-weight: 500;
                          }
                          .headline-txt,
                          .button-txt{
                              text-transform: uppercase;
                          }
                          /*Your color scheme here*/
                          .blue {
                              fill: #4285f4;
                          }
                          .black {
                              fill: #303030;
                          }
                          .white {
                              fill: #efefef;
                          }
                          /* Important for animation!*/
                          .hidden {
                              opacity: 0;
                          }
                          svg{visibility: hidden;
                              
                          }
                    ]]>
                </style>
            </defs>
            <!--Link to GSAP TweenMax.js here:-->
            <script type="text/javascript" xlink:href="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
            <!--Banner animation with GSAP TweenMax here:-->
            <script type="text/javascript">
                <![CDATA[
                    window.onload = function() {
                        var b = document.getElementById("slide1"),
                            c = document.getElementById("txtmask1"),
                            d = document.getElementById("slide2"),
                            f = document.getElementById("txtmask2"),
                            g = document.getElementById("slide3"),
                            h = document.getElementById("txtmask3");
                        TweenMax.set("svg", {visibility: "visible"});
                        TweenMax.lagSmoothing(500, 33);
                        TweenMax.set(b, {autoAlpha:0});
                        var a = new TimelineMax({repeat:-1});
                            //slide1
                            a.to(b, .5, {autoAlpha:1});
                            a.from(c, 1, {attr:{transform:"translate(0, 0)"}, ease:Power3.easeOut}, "-=.5");
                            a.to(b, .5, {autoAlpha:0}, "+=3");
                            //slide2
                            a.to(d, .5, {autoAlpha:1});
                            a.from(f, 1, {attr:{transform:"translate(0, 0)"}, ease:Power3.easeOut}, "-=.5");
                            a.to(d, .5, {autoAlpha:0}, "+=3");
                            //slide3
                            a.to(g, .5, {autoAlpha:1});
                            a.from(h, 1, {attr:{transform:"translate(0, 0)"}, ease:Power3.easeOut}, "-=.5");
                            a.to(g, .5, {autoAlpha:0}, "+=3");
                    };
                ]]>
            </script>
            <!--Banner background here:-->
            <path d="M0 0h300v600H0z" class="blue"/>
            <path d="M10 10h280v580H10z" class="white"/>
            <!--Your logo here:-->
            <text x="15" y="80" class="logo-txt">
                <tspan class="blue">web:</tspan><tspan class="black">GX</tspan>
            </text>
            <!--Your slogan and additional text here:-->
            
                <text x="35" y="130" class="subline-txt black">designing for web</text>
                <text x="25" y="160" class="subline-txt black">Tallinn 20 Oct 2020</text>
            
            <!--Slider content here:-->
            <svg width="300" height="500" viewBox="0 0 300 500">
                <!--slide 1 here:-->
                <g id="slide1">
                    <!--Replace with your own SVG artwork for Slide 1 here:-->
                    <path d="M149.95 189.3A130.042 130.042 0 0 0 19.91 319.344 130.042 130.042 0 0 0 53.2 406.04h75.946c-4.335-3.468-8.67-7.803-13.004-13.005-5.202-5.202-10.057-9.536-13.438-14.738-9.537-16.472-9.71-36.412-15.865-51.15 1.64 3.468 4.42 4.335 12.74 6.07 6.76.866 21.76 1.733 28.69-.868 5.2-2.6 7.8-6.07 10.4-15.61.86-3.47.86-4.34 1.73-6.94 1.73-1.74 6.07-1.74 8.67 0 .86.86 1.73 4.33 2.6 6.93 4.33 11.27 11.27 16.47 31.21 14.74 20.8-2.6 22.54-3.47 24.27-18.21 0-4.34.86-9.54 1.73-11.27.86-.87 2.6 0 3.47-.87.87-.87 1.73-3.47 2.6-4.34.86 7.8 2.6 22.54-.87 32.08-2.6 8.67-5.2 6.93-6.94 23.41-1.74 23.4-11.27 30.34-17.34 37.27-4.33 4.33-8.67 11.27-14.74 16.47h71.95a130.042 130.042 0 0 0 32.94-86.7 130.042 130.042 0 0 0-130-130.01zm-48.375 19.594c-11.704 12.397-16.56 7.456-14.305 24.1-8.583-12.223 3.38-18.55 14.305-24.1zm124.667 9.797c4.335.18 7.803 24.11 7.803 24.11s-4.335-16.9-9.537-23.67c0-.26.867-.43 1.734-.43zm-40.746 2.87c-19.073 7.8-21.674 10.75-26.01 18.55 25.143-9.36 26.01-5.37 37.28-9.01 5.202-1.64-.867 2.6-8.67 20.72 8.67-11.01 14.74-16.73 11.27-6.93 0 2.6-1.733 6.07 0 6.07 2.602-3.47 4.335-3.47 5.202-2.6 1.734 4.34 2.6 6.94 1.734 10.41-2.6 6.07-.867 6.07 6.07 15.61 2.6 9.45 2.6 16.39-5.203 21.59-9.54.87 0 0-1.74-2.6-1.74-3.47-.87-3.47-4.34-3.47-10.41.87-5.2-4.33-10.41-3.46-6.94.87-21.68 6.07-28.61 8.67-3.47 1.73-7.8 3.47-10.4 6.07-3.47 2.6-12.14 4.34-17.34 0-1.74-1.73-8.67-5.2-13.87-6.93-8.67-2.6-18.73-4.33-23.41-5.2-3.56-.86-1.13 4.34-4.6 2.6-2.78-.86-5.12-1.73-5.29 1.74-.26 6.07 14.22 4.34 13.26 5.2 0 0-9.28.87-14.05 1.74-.43-4.33-2.08-10.4-1.56-14.732 1.3-9.53.78-21.58-.44-31.12 0 0 1.38-6.94 2.77-10.402 2.08-3.64-2.86 13.01 3.38 24.28-1.56-18.21-1.39-29.13 5.46-31.56 9.36-2.52 6.59-5.46 12.31-6.5 4.34-.61 6.94-.87 4.34.69-4.34.52-3.47 5.2 2.6 5.2 16.47.433 15.6-7.8 17.34 4.51 13-7.458 13.87-14.047 13.87-4.68 4.33-4.25 33.81-13.61 39.01-14.39zm47.682 57.91c13.87 0 3.468 43.35-11.27 47.68.866-3.47 1.733-3.47 6.068-8.67 2.6-3.46 6.936-12.13 6.07-14.74-2.602 2.6-5.203 10.41-5.203 5.2 1.734-10.4-2.6-7.8-4.335-13 1.734-2.6 7.803-13 8.67-4.33 0 2.6-.867 10.41.867 10.41.867 0 0-13 .867-13 1.734 0 0 8.67.867 9.54 0 0 .86.87 1.73-2.6.86-3.47 0-6.07 0-8.67.86-5.2-2.6-4.33-5.2-2.6-15.61 9.54-1.74-5.2.86-5.2zm-155.618.87c3.64 0 3.902 7.81 4.075 8.67-1.214 5.2-.607 6.94-.607 10.41.607 4.34.173 7.8-.607 11.27-1.04 6.07 4.86 14.74 4.86 14.74-8.67-4.33-6.85-15.6-8.75-26-1.9-10.4-3.12-17.34.26-19.07h.78zm118.34 18.2c3.467 0 6.068 1.74 6.935 2.6 1.733 2.6 1.733 20.81-1.734 22.54-6.06 5.21-30.34 5.21-35.54 3.47-11.27-2.6-14.74-22.54-2.6-26.01 0 0-5.2 6.94-3.47 8.67 6.07-7.8 13.87-11.27 11.27-9.53-3.46 2.6-6.93 7.81-6.93 8.67 0 1.74 6.94.87 6.94 0-.86-.86-1.73 0-3.46-.86-.86-.86 4.34-5.2 6.94-6.07 0 7.81 12.14 8.67 12.14 0 6.07 0 4.34 1.74 2.6 2.6 0 .87 2.6 3.47 3.47 3.47 1.74 0 7.8-2.6 7.8-6.07 0-1.73-3.47-2.6-5.2-3.46h.87zm-18.207 2.6c.867 0 2.6 0 2.6.87 0 1.74-2.6 2.6-3.467 0 0-.86 0-.86.867-.86zm-65.02 0s.866 0 .866.87c0 2.6-2.61 2.6-3.47 0 0-.86 1.73-.86 2.6-.86zm-6.33.87c-.347 9.54 12.397 7.81 12.397 1.74 0 0 1.734 0 6.07 2.6 1.733.87-4.336 2.61-4.336 2.61s6.07 2.6 6.936 0c-1.734-5.2 1.734-2.6 4.335-1.73 2.6-.86-4.335-4.33-1.734-4.33 6.07 2.6 5.21 5.21 5.21 12.14-.86 6.07-4.33 13.87-12.13 15.61-15.6 1.74-31.12-1.73-33.29-6.07-2.25-4.33-3.81-18.2-1.99-19.94 2.78-1.73 1.04 4.34 16.04 3.47-5.98-2.6-1.12-5.2 2.52-6.07zm54.01 34.68c-1.733 0-1.733 2.6 0 4.34 2.602 1.73 11.27 12.13 0 13.87-1.733 0-4.334 0-3.467-.87 0 0 .867-.87.867-1.73-.867-.87-1.734 0-2.6 0-4.335 2.6-4.335 6.07-8.67 6.07-1.734 0-3.468-1.74-4.335 0-.867.86 1.734 1.73 2.6 1.73 7.803 2.6 9.537-6.07 13.005-4.34 1.734.87-2.6 2.6-1.734 3.47 1.73 1.74 3.46-2.6 4.33-2.6.86-.86 2.6-.86 2.6-.86 6.07 0 5.2-6.07 2.6-11.27-1.74-1.73-2.6-3.47-3.47-5.2s-1.74-2.6-1.74-2.6zm-26.874 17.34c-.87 0-1.74 0-1.74.87-.87 1.74.86 1.74 2.6 1.74 1.73 0 5.2.87 5.2 0s-3.47-2.6-6.07-2.6zm39.01 16.47c-2.6 0-5.2 3.47-6.94 2.6-.87 0-3.47-1.73-5.2-.86s-3.47 2.6-4.34 2.6c-1.74.86-4.34 0-6.94 0-1.74 0-3.47.86-6.07.86-1.74 0-3.47-.86-5.2-.86-5.2.87-2.6-3.47-5.2-2.6-4.34 1.73-6.07.87-7.81.87-1.74 0-2.6.87-2.6.87 0 1.74 26.87 5.21 36.41 2.6 2.6 0 5.2.87 7.8 0 5.2-1.73 5.2-1.73 7.8-4.33-.87-.86-.87-1.73-1.74-1.73zm-11.27 13c-1.74 0-7.81 2.6-10.41 2.6-7.81 0-6.94-.86-9.54.87-3.47 1.74 6.07.87 15.6 0 2.6 0 6.07-.86 5.2-3.47h-.87z" class="black"/>
                    <g id="txtmask1" transform="translate(0, 202)">
                        <path d="M20 189h260v199H20z" class="white"/>
                        <!--Slide1 text here:-->
                        <g>
                            <text x="21" y="227" class="headline-txt blue">MIKE SMART</text>
                            <text x="75" y="257" class="subline-txt black">UX designer</text>
                        </g>
                    </g>
                </g>
                <!--Slide2 here:-->
                <g id="slide2" class="hidden">
                    <!--Replace with your own SVG artwork for Slide 2 here:-->
                    <path d="M151.2 189C78.8 189 20 247 20 318c0 33 11.4 65 33.2 88h193c23-23 34-55 34-88 0-71-58-129-129-129zm5 9c11 4 18 15 21 21l3 4s7 0 7-1c1 0-7-20-7-20 3 2 8 17 8 19s2 2 6 3c4-11-2-22 0-20 5 6 3 15 3 21 0 2 6 4 8 8 14 14 18 79 18 112-6 26-33-1-46 8-2 3-4 3-8 2-4-2-9-2-13 0-15 4-46 24-55 12-8.5-17-12.1-29-12.1-46 0-12-2.5-23-4.9-29 0-10 0-15 1.2-25 0-5 8.2-20 3.7-17-2.5 2-16.4 17-12.7 12 17.2-29 41.8-39 61.8-33 18 0 18 0 30-4 9-4 9-2 9-4-4-10-10-14-21-23zm-45 9c10 1 11 4 14 6-29.6-8-42.2 6-48.8 14 5.4-11 10.2-17 23.8-18 6-1 8-2 11-2zm90 75c-13 0-28 4-29 9-1 2 2 6 5 4 5-3 28-9 39-2 3 1 3 0 2-1-2-3-2-6-5-8-2-2-8-2-12-2zm-55 6c-30 0-30 1-34 3s-11 7-11 13c0 3 3 0 6-2 8-7 19-7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1 1-4 1-5 1-1-4-1-3-1 0-1 2-4 2-6 2-1-5-2-6-2 0-1 1-6 1-7 0-1-5-2-4-2 0 0 1-5 1-6 0 0-4-1-3-1 0l-4-1c1-4 0-3-1-1 0 1-2 0-3-1 0-1 1-3-1-3v3c8 8 21 5 31 4 10-2 17-7 17-12zm-50 6v-2c-5-1 0 4 0 2zm36-5c-3 0-2 1-1 3 2 2 1-2 1-3zm3 0s2 4 2 1c0-1 0-1-2-1zm-11 1c-1 0-1 3 0 3s1-3 0-3zm-9 2c-3 0 0 3 1 1 0-1 0-1-1-1zm-11 1c-1 0 0 1 0 1 1 0 1-1 0-1zm4 0c0 2 1 2 2 0zm32 11c-7 4-21 7-32 4 21 8 25 1 32-4z" class="black"/>
                    <g id="txtmask2" transform="translate(0, 202)">
                        <path d="M20 189h260v199H20z" class="white"/>
                        <!--Slide2 text here:-->
                        <g>
                            <text x="23" y="227" class="headline-txt blue">JOHN SHARP</text>
                            <text x="75" y="257" class="subline-txt black">UI developer</text>
                        </g>
                    </g>
                </g>
                <!--Slide3 here:-->
                <g id="slide3" class="hidden">
                    <!--Replace with your own SVG artwork for Slide 3 here:-->
                    <path d="M151 189c-72.4 0-131.2 58-131.2 129 0 33 11.4 65 33.2 88h71l4-10c-54.8-20-27-123-16-137 10-12 13-16 17-18 12 2 19 2 27 6 1 1 10-20 17-29-4 12-7 12-13 30 0 0 4 2 7 3 2 1 2-20 14-32-6 16-10 20-10 32 2 0 14 1 15 2 15 5 27 4 42 14l2 2c-1 12 4 14-5 14-6-1-10 0-14 3-1 1-3 3-7 5-9 6-10 9-8 22-1 9 7 27 6 30s-2 6-5 7c-4 1-8 0-9 2 0 3 1 5 5 5 3 0 12-4 13-7 2-6-3-21-5-32-1-8-1-9 5-5 0 0-2 1 0 4 0-6 2 0 2 0 2-3 2-3 3 0 0 0 5-3 8 0 2 0 4-2 6-4 0 1-1 2-1 3-2 5 3 12-2 24-11 22-26 43-34 66h58c23-23 34-55 34-88 0-71-58-129-129-129zm-39 49c-19.3 19-46.7 94-33.3 154l-9.6-3c-1.4-53 11.2-125 42.9-151zm-33.8 20c-18.7 31-30.4 79-28.6 119-3.8-2-7-3-7-3 6.4-54 11.5-91 35.6-116zm65.8 6c-6 1-19 6-18 8 0 1 8-2 11-2 7-2 15-2 20 0 10 3 13 10 21 12 5 2 6 3 7 0 1-2 1-6-8-10-8-4-20-8-29-8zm12 13c-7 0-14 2-16 5-3 2-3 1-6 0-2-1-4-1-5-1 0 1 2 4 3 5 5 6 8 6 9 6 2-1 3 1 3 1 0 2 4 5 7 6 4 1 9-2 8-7 4-2 6 1 8 4 1 4-1 4-6 5-4 0-9 0-14-1-2 1 2 1 4 5 1-4 4 1 4 1 0-6 3 2 4 1-2-7-1-1 4-1l-2-3c7-2 11-3 12-10 0-3-1-6-2-8-4-6-10-8-15-8zm68 12c1 0 2 1 2 1 2 2 4 1 2 12-1-3-3-9-5-9-12 3-3-4 1-4zm-67 6c-1 2-5 0-3-3 2-2 5 0 3 3zm42 9c11-10 5-4 2 3-1 2-2 3-2 1zm16 1h1c3 2 4 2 3 5-2 3-6 5-9 4-1 0-1 0 0-1 5-2 5-6 5-8zm-2 1c2 2 0 5-2 4-2-2 1-5 2-4zm-44 38c-1 0-1 0-1 1 1 3 5 1 8 1 4-1 11 6 11 2 0-2-5-4-10-4-2 0-4-1-5 0s-2 0-3 0zm5 21c-4 0-9 1-13 2-6 2-8 2-12 1-6 0 0 3 1 4 10 21 32 26 43 11 5-5-4-16-6-16-5 0-6-3-13-2zm-14 8c34 4 26 8 25 8 0 0-27-8-25-8z" class="black"/>
                    <g id="txtmask3" transform="translate(0, 202)">
                        <path d="M20 189h260v199H20z" class="white"/>
                        <!--Slide3 text here:-->
                        <g>
                            <text x="23" y="227" class="headline-txt blue">Lisa Beauty</text>
                            <text x="80" y="257"class="subline-txt black">UI designer</text>
                        </g>
                    </g>
                </g>
            </svg>
            <!--Banner cta button here-->
            <a>
                <rect width="260" height="60" x="20" y="510" class="blue" ry="30" rx="30" />
            </a>
            <text x="61" y="550" class="subline-txt white">SIGN UP NOW</text>
        </svg>

</div>
              
            
!

CSS

              
                body{
  background-color:#1d1f20;
  overflow: hidden;
}
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
#container{
  max-width:300px;
  width:100%;
  overflow:hidden; 
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%) 
}

svg{/*IE fix*/
  width:100%;
  padding-bottom: 199%;
  height: 1px;
  overflow: visible;
}
              
            
!

JS

              
                
              
            
!
999px

Console