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.

            
              <div class="container">
        <header>
            <h1 class="heading">You're Invited to <br> <br>Impact</h1>
            <a id="enroll-button" href="#enroll">Enroll Now</a>
            <p id="date">
                Comming Soon
            </p>
        </header>
        <content>
            <section id="what-is-it">
                <h1>What is it?</h1>
                <span>
                    IMPACT is an annual technology and innovative fest happening on January 21st and 22nd at the JNTU Hyderabad campus. With a vision to create an Impact with the ever innovative technology, IMPACT 2017 brings home the very idea of Innovation meeting technology. With an ensemble of the greatest minds of the city and power talks involving innovation, technology and a start-up scope involved in the said domains. IMPACT tends to focus on bringing out a new and different culture for students and individuals altogether. It focuses on being the DAWN of a new kind of startup and technological culture thats been brewing around lately. IMPACT aims to be a perfect platform for student ideas and tries to nurture that innovative thought process and help them build towards their billion dollar dreams. IMPACT 2017 includes power talks, innovation-inducing workshops with hands-on experience and competitions (of various tech genres) which aim to bring out whatever an individual has been taught in the workshops. The IMPACT EXPO showcases a wide set of brilliant Expo of the latest technology that the mankind has its hands on.
                </span>
            </section>
            
            <section id="footer">
                <div id="wrapper">
                    <div id="quick-links">
                        <h3>Quick Links</h3>
                        <ul>
                            <li><a href="#about">About</a></li>
                            <li><a href="#tickets">Tickets</a></li>
                            <li><a href="#schedules">Schedules</a></li>
                        </ul>
                    </div>
                    <div class="quick-contact">
                        <h3>Quick Contact</h3>
                        <p>
                            Email: info@impactfest.in <br>
                            For More Details Call: <br>
                            <code>7671010861 | 9032172629</code>
                        </p>
                    </div>
                </div>
            </section>
            <section>
                <div id="credits">
                    Designed By <a target="_blank" href="https://shahidkamal.me">Shahid Khan</a>
                </div>
            </section>

        </content>
    </div>
            
          
!
            
              body {
  margin: 0px; }

.container {
  width: 100%;
  height: 100vh;
  position: absolute;
  background-color: black;
  background: url("http://impactfest.in/impact/wp-content/uploads/2017/01/bg_2.jpg");
  background-attachment: fixed; }

header {
  min-height: 15em;
  position: relative; }

header h1 {
  font-family: "Revalia", cursive;
  font-size: 5em;
  text-align: center;
  max-width: 100%;
  flex: 1;
  color: #FFEB3B; }

header {
  text-align: center; }
  header a {
    text-decoration: none;
    padding: 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    border: 1px solid #fff;
    color: #fff; }
  header a:hover {
    background-color: #fff;
    color: black; }

section {
  font-family: 'Open Sans'; }

#what-is-it {
  margin-top: 4em;
  background-color: #FFF9C4;
  text-align: center;
  padding: 3em; }
  #what-is-it h1 {
    color: #03A9F4;
    font-size: 3em; }

#footer {
  background-color: #212121;
  color: #fff;
  padding: 3em;
  min-height: 13em; }
  #footer #quick-links {
    width: 49%;
    float: left; }
    #footer #quick-links ul {
      padding: 0px;
      list-style: none; }
    #footer #quick-links a, #footer #quick-links li {
      padding: 10px;
      margin: 10px; }
    #footer #quick-links a, #footer #quick-links a:visited {
      text-decoration: none;
      color: #03A9F4; }
    #footer #quick-links a:hover {
      color: #212121;
      background: #fff; }
  #footer #quick-contact {
    width: 50%;
    float: left; }

#credits {
  background-color: black;
  padding: 10px;
  text-align: center;
  color: #fff; }
  #credits a {
    color: #03A9F4;
    text-decoration: none;
    padding: 5px;
    background-color: #212121; }

#date {
  margin: 0px auto;
  width: 50%;
  font-size: 2em;
  background-color: #212121;
  color: #FFF;
  padding: 1.5em;
  margin-top: 2em;
  font-family: Verdana, Geneva, Tahoma, sans-serif; }
            
          
!
            
              $(()=>{
            window.onscroll = function(){
                let speed = '0.2'
                let y = window.pageYOffset
                console.log(y)
                document.querySelector('.container').style.backgroundPosition = "50% " + (y * speed) + "px"
            }
        })
            
          
!
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