JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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"
}
})
Also see: Tab Triggers