JSFiddle - React, Tailwind, and code Playground

by jupiterjackrabbit

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/vendor/jquery-1.11.2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenLite.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/plugins/CSSPlugin.min.js"></script>
<script src="src/js/main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.4/easing/EasePack.min.js"></script>
<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>GreenSock 101 - TweenLite Animation</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="apple-touch-icon" href="apple-touch-icon.png">

        <link rel="stylesheet" href="css/styles.css">

        <script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
    </head>
    <body>
        <!--[if lt IE 8]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->

        <header id="header">
            <h1><span>GreenSock 101</span><em></em></h1>
            <p class="intro">Your first hour with GSAP, <br /><em>make sure it is a good one</em>.</p>
            <img src="https://greensock.com/wp-content/themes/greensock/images/greensock-logo.svg" alt="GreenSock 101 - Getting started with GreenSock in 60...

CSS

/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 16px/26px Helvetica, Helvetica Neue, Arial;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Orange Theme
   =================== */

.header-container {
    border-bottom: 20px solid #e44d26;
}

.footer-container,
.main aside {
    border-top: 20px solid #e44d26;
}

.header-container,
.footer-container,
.main aside {
    background: #f16529;
}

.title {
    color: white;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    color: white;
    background: #e44d26;
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: white;
   ...

JavaScript

(function($) {
    
	var img = $('img'),
		
		TweenLite.to(img, 1 {width: 100});

	// Simple Tween
	//TweenLite.from(img, 1, {x: -200});
	//TweenLite.from(h2, 1, {autoAlpha: 0, delay: 1});

})(jQuery);






//(function($) {
 //var header = document.getElementbyID('header');
		//TweenLite.to(header, 1, {opacity: 0, y: 50});
//})(jQuery);

	// jQuery Selectors
	// var header = $("#header"),    // jQuery ID
	//     h1 = $("h1"),             // jQuery tag
	//     intro = $(".intro"),      // jQuery class
	//     firstItem = $("li:first-child"),    // jQuery first item
	//     secondItem = $("li:nth-child(2)"),    // jQuery second item
	//     lastItem = $("li:last-child");      // jQuery last item

	// JavaScript Selectors
	
	
	
	
	
	
	
	/*
	var header = document.getElementById("header"),
	    h1 = document.getElementsByTagName("h1"),
	    intro = document.getElementsByClassName("intro"),
	    firstItem = document.getElementsByClassName("list")[0].firstElementChild,
	    secondItem = document.getElementsByClassName("list")[0].children[1],
	    lastItem = document.getElementsByClassName("list")[0].lastElementChild;
	
	// JavaScript querySelector
	var	select = function(s) {
		return document.querySelector(s);
	};

	// JavaScript querySelectorAll
	var selectAll = function(s) {
		return document.querySelectorAll(s);
	};

	var intro2 = select('.intro');
	var allItems = selectAll('li');

	// Simple Tween
	TweenLite.to(allItems, 1.5, {y: 50, autoAlpha: 0});



})(jQuery);*/