Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="wrapper">
<img class="world rotate" src="https://svgsilh.com/svg/158348.svg"/>
<svg id="rocket" class="rocket" version="1.0" xmlns="http://www.w3.org/2000/svg"
 width="806.000000pt" height="1280.000000pt" viewBox="0 0 806.000000 1280.000000"
 preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.15, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,1280.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M3889 12719 c-399 -261 -728 -609 -1179 -1249 -630 -894 -1106 -2009
-1294 -3030 -78 -427 -98 -643 -102 -1140 l-3 -415 -108 -88 c-59 -49 -216
-177 -348 -285 -422 -345 -548 -487 -684 -773 -152 -317 -206 -692 -147 -1014
16 -89 166 -769 341 -1540 134 -596 140 -612 264 -736 129 -128 283 -192 461
-192 195 0 313 60 560 284 63 57 167 149 230 204 63 55 216 190 340 300 192
171 359 315 421 363 14 10 26 4 80 -39 304 -243 678 -404 1052 -454 285 -37
589 -7 872 87 225 74 512 232 687 378 34 29 65 47 71 43 7 -4 262 -221 567
-483 706 -605 690 -592 760 -629 82 -44 141 -61 241 -68 235 -16 464 96 590
290 62 96 70 127 249 1027 257 1289 256 1284 247 1495 -16 334 -110 619 -297
899 -124 185 -223 277 -833 775 -103 84 -190 157 -193 162 -3 5 -5 156 -5 336
1 422 -21 700 -85 1088 -180 1083 -657 2221 -1332 3178 -388 550 -689 882
-1035 1138 -67 50 -250 169 -260 169 -2 0 -59 -37 -128 -81z"/>
<path d="M2730 2471 c-75 -24 -136 -75 -173 -145 l-22 -41 0 -650 0 -650 23
-47 c59 -119 221 -182 339 -133 21 9 106 84 208 186 l172 170 272 -540 c247
-490 275 -542 312 -570 102 -74 254 -63 343 25 17 17 138 249 293 558 l264
529 172 -171 c187 -185 214 -202 306 -201 104 1 191 53 234 140 l27 53 0 650
c0 727 3 692 -71 765 -53 53 -112 76 -194 75 -64 0 -80 -5 -185 -56 -196 -95
-391 -157 -625 -199 -188 -34 -541 -38 -741 -10 -257 37 -464 98 -689 204
-133 63 -203 78 -265 58z"/>
</g>
</svg>
</div>
              
            
!

CSS

              
                .wrapper {
  position:relative;
}
.world {
    width: 540px;
    position: absolute;
    left: 0;
    top: 0;
}
.rotate {
    animation: rotation 60s infinite linear;
}
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

.rocket {
  width: 100px;
  position:relative;
  left:200px;
  top:-915px;
}
              
            
!

JS

              
                var R = 610;
    TweenMax.to("#rocket", 5, {
        bezier: {
            curviness: 1.5,
            values: [{x: 0, y: 0},
                {x: -R / 2, y: R / 2},
                {x: 0, y: R},
                {x: R / 2, y: R / 2},
                {x: 0, y: 0}
            ],
            autoRotate: 90,
        },
        ease: Linear.easeNone,
        repeat: -1
    });
              
            
!
999px

Console