brandonw6890098 wrote Nancy, Thanks for letting me know about Fluid Grid being depricated... now I won't have to waste my time and will focus on DW CC! It's cool you can make a triangle in CSS, I'll try to figure out how they've created that effect, the triangle seems to be integrated into the parallax bar here's the actual link hope you can access: https://goo.gl/hEjNSw As you scroll up you can see what I mean, the triangle is part of the lower bar. Brandon |
That arrow is an svg image. The structure is hugley complex, made up of 3 <divs> with the svg being the middle <div> then all 3 <divs> are superimposed over the background image in a parent <div>. Whilst the visual aspect of the layout is undoubtedly extremely eye-catching, very nice, the complete code is a terrible mess. It would be because its a Wordpress site, all Wordpress sites are a complete mess because they generally use lots of js files, bloated plugins to do what 3 or 4 lines of dedicated js could do and extremely unruly class names for components. It's this kind of workflow/coding that makes me want to vomit and give up on website design.
The thing is those that use Wordpress are not meant to look at the code so those that invented it thought it wouldn't matter much what quality of coding it produced. Well heres some news, unfortunately Wordpress became a mainstream bit of bloated software that developers began to use for producing websites, not just ugly blogs. The code was never updated to reflect this and mostly remains in its origianal 'untenable' bloated state.
In the real web devlopement world we would do something very different - below is some simple code that you may be able to hopefully understand a bit better. The layout is not styled - it's just a simple example that shows you how you can achieve the effect in a more controlled fashion, with less code.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Arrow</title>
<style>
body {
margin: 0;
}
* {
box-sizing: border-box;
}
/*BACKGROUND IMAGE */
.bg-image {
position: relative;
height: 650px;
background-position: center center;
background-image: url('http://images.all-free-download.com/images/graphiclarge/butterfly_on_coneflower_194994.jpg');
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
}
/*BACKGROUND IMAGE TEXT */
.bg-image-text {
position: absolute;
width: 100%;
text-align: center;
bottom: 200px;
color:#fff;
text-transform: uppercase;
}
/* CREATE ARROW */
.arrow {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
position: absolute;
width: 100%;
bottom: 0;
}
.arrow-right {
width: 50%;
height: 0;
border-left: 0 solid transparent;
border-right: 35px solid transparent;
border-bottom: 35px solid white;
}
.arrow-left {
width: 50%;
height: 0;
border-left: 35px solid transparent;
border-right: 0 solid transparent;
border-bottom: 35px solid white;
}
/* END CREATE ARROW */
.content {
text-align: center;
}
.content p {
max-width: 60%;
margin: 0 auto 15px auto;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$(window).bind("resize scroll",function(e) {
var y = $(window).scrollTop();
$(".bg-image").filter(function() {
return $(this).offset().top < (y + $(window).height())
}).css('background-position', 'center ' + parseInt(-y / 2) + 'px');
});
});
</script>
</head>
<body>
<div class="bg-image">
<div class="bg-image-text">
<h1>Text Goes Here</h1>
</div>
<div class="arrow">
<div class="arrow-right"></div>
<div class="arrow-left"></div>
</div>
<!-- end arrow -->
</div>
<!-- end bg-image -->
<div class="content">
<h1>Discover</h1>
<h3>OUR STORY IS AWESOME</h3>
<p>Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum, no quo maiorum intellegebat, liber regione eu sit. Mea cu case ludus integre, vide viderer eleifend ex mea. His ay diceret, cum et atqui placerat. Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum.</p>
<p>Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum, no quo maiorum intellegebat, liber regione eu sit. Mea cu case ludus integre, vide viderer eleifend ex mea. His ay diceret, cum et atqui placerat. Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum.</p>
<p>Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum, no quo maiorum intellegebat, liber regione eu sit. Mea cu case ludus integre, vide viderer eleifend ex mea. His ay diceret, cum et atqui placerat. Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum.</p>
<p>Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum, no quo maiorum intellegebat, liber regione eu sit. Mea cu case ludus integre, vide viderer eleifend ex mea. His ay diceret, cum et atqui placerat. Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum.</p>
<p>Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum, no quo maiorum intellegebat, liber regione eu sit. Mea cu case ludus integre, vide viderer eleifend ex mea. His ay diceret, cum et atqui placerat. Lorem ipsum dolor sit amet, feugiat delicata liberavisse id cum.</p>
</div>
<!-- end content -->
</body>
</html>