1
I’m trying to try a plugin jQuery
called vegas
to make a background fullscreen but not working, I did according to what is on the site, imported all libraries, the jQuery
and the archives .css
of Vegas
. My code is like this:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<title>Untitled</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="js/vegas/vegas.css">
<link rel="stylesheet" href="css/reset.css">
<script src="js/vegas/vegas.js"></script>
<script src="js/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
$('body').vegas({
slides: [
{ src: 'img/slide1.jpg' },
{ src: 'img/slide2.jpg' },
{ src: 'img/slide3.jpg' },
{ src: 'img/slide4.jpg' },
{ src: 'img/slide5.jpg' }
]
});
</script>
</body>
</html>
CSS code of body:
body{
font-family: 'Open Sans', sans-serif;
font-size: 14px;
font-size: 1.4rem;
color: #292929;
background: #000;
}
And the image location is correct and linked in the plugin function.
Import jQuery before plugin, not after.
– bfavaretto
Hasn’t shown up yet. :(
– Israel Sousa