cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <div class="Parallasse Img_1">
  <div class="TitleText">
    <a href="http://www.targnet.it/?MASTER=OK" target="_blank">www.targnet.it</a><br /><br />
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas libero nulla, tempor et nisi in, tincidunt iaculis nisi. Praesent sed enim nec ligula vestibulum pellentesque in a sem. Suspendisse potenti. Sed semper laoreet ex a iaculis. Integer eget quam tempus, tempus neque quis, dignissim ligula. Praesent ut tincidunt justo, et laoreet mi. Cras lectus nibh, ultrices pulvinar leo eget, auctor vestibulum ante. Morbi ut ipsum dui. Suspendisse ut sapien eu felis pellentesque blandit. Sed iaculis tempor dictum. Nullam vel lacus justo. Maecenas volutpat est et consequat dignissim. Ut blandit et nisi at congue. Nam a imperdiet ante, eu lobortis turpis. Nam pulvinar ex id velit commodo semper. 
  </div>
</div>
<div class="Parallasse Img_2">
  <div class="TitleText">
  <a href="http://www.targnet.it/?MASTER=OK" target="_blank">www.targnet.it</a><br /><br />
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas libero nulla, tempor et nisi in, tincidunt iaculis nisi. Praesent sed enim nec ligula vestibulum pellentesque in a sem. Suspendisse potenti. Sed semper laoreet ex a iaculis. Integer eget quam tempus, tempus neque quis, dignissim ligula. Praesent ut tincidunt justo, et laoreet mi. Cras lectus nibh, ultrices pulvinar leo eget, auctor vestibulum ante. Morbi ut ipsum dui. Suspendisse ut sapien eu felis pellentesque blandit. Sed iaculis tempor dictum. Nullam vel lacus justo. Maecenas volutpat est et consequat dignissim. Ut blandit et nisi at congue. Nam a imperdiet ante, eu lobortis turpis. Nam pulvinar ex id velit commodo semper. 
  </div>
</div>
<div class="Parallasse Img_3">
  <div class="TitleText">
    <a href="http://www.targnet.it/?MASTER=OK" target="_blank">www.targnet.it</a><br /><br />
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas libero nulla, tempor et nisi in, tincidunt iaculis nisi. Praesent sed enim nec ligula vestibulum pellentesque in a sem. Suspendisse potenti. Sed semper laoreet ex a iaculis. Integer eget quam tempus, tempus neque quis, dignissim ligula. Praesent ut tincidunt justo, et laoreet mi. Cras lectus nibh, ultrices pulvinar leo eget, auctor vestibulum ante. Morbi ut ipsum dui. Suspendisse ut sapien eu felis pellentesque blandit. Sed iaculis tempor dictum. Nullam vel lacus justo. Maecenas volutpat est et consequat dignissim. Ut blandit et nisi at congue. Nam a imperdiet ante, eu lobortis turpis. Nam pulvinar ex id velit commodo semper. 
  </div>
</div>
<div class="Parallasse Img_4">
  <div class="TitleText">
    <a href="http://www.targnet.it/?MASTER=OK" target="_blank">www.targnet.it</a><br /><br />
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas libero nulla, tempor et nisi in, tincidunt iaculis nisi. Praesent sed enim nec ligula vestibulum pellentesque in a sem. Suspendisse potenti. Sed semper laoreet ex a iaculis. Integer eget quam tempus, tempus neque quis, dignissim ligula. Praesent ut tincidunt justo, et laoreet mi. Cras lectus nibh, ultrices pulvinar leo eget, auctor vestibulum ante. Morbi ut ipsum dui. Suspendisse ut sapien eu felis pellentesque blandit. Sed iaculis tempor dictum. Nullam vel lacus justo. Maecenas volutpat est et consequat dignissim. Ut blandit et nisi at congue. Nam a imperdiet ante, eu lobortis turpis. Nam pulvinar ex id velit commodo semper. 
  </div>
</div>
            
          
!
            
              .Parallasse{
  margin:200px 0px;
  background-color:#555555;
background-attachment:fixed;
background-repeat:repeat-y;
background-size: auto 120vh;
background-position:50vw center;
}
.Img_1{
  background-image:url('http://www.targnet.it/FOTO/BGHOME/software-aziendale.jpg');
}
.Img_2{
  background-image:url('http://www.targnet.it/FOTO/BGHOME/cloud-data-center.jpg');
}
.Img_3{
  background-image:url('http://www.targnet.it/FOTO/BGHOME/clinic-software.jpg');
}
.Img_4{
  background-image:url('http://www.targnet.it/FOTO/BGHOME/web-design.jpg');
}
.TitleText{
  color:white;
  font-size:18px;
  padding:40px 55% 40px 40px;
}
a{
color:orange;
}
body{
  margin:0px;
  padding:0px;
}
            
          
!
            
              function getPosition(element) {
	var xPosition = 0;
	var yPosition = 0;
	while(element) {
		xPosition += (element.offsetLeft - element.scrollLeft + element.clientLeft);
		yPosition += (element.offsetTop - element.scrollTop + element.clientTop);
		element = element.offsetParent;
	}
	return { x: xPosition, y: yPosition };
}
function SetBackgroundPos(w){
   b=(document.documentElement || document.body.parentNode || document.body).scrollTop;
	e=getPosition(w);
  c=b-e.y;
	valY=e.y/10;
	valH=120+(c/50);
	w.style.backgroundPosition="50vw  "+(c*0.1)+"px ";
  w.style.backgroundSize= "auto "+valH+"vh";
}
var myList = document.getElementsByClassName("Parallasse");
window.onscroll = function (event) {
	for(n=0;n<myList.length;n++){
		SetBackgroundPos(myList[n]);
	}
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console