I use two diffrent image in my project as backgrouund because both have diffrent designs and desktop image looking odd in mobile devices.so is it possible to show BG image as per mobile device.Here is the demo which i create https://codeslide.in/contact.
am using codeigniter framework.Below is code as i use two images in css but not working.
// Step 3 - Instilize the plugin by #id selector
VANTA.BIRDS({
el: "body",
colorMode: "varianceGradient",
wingSpan: 23.00,
speedLimit: 8.00,
separation: 60.00,
alignment: 35.00,
cohesion: 24.00,
backgroundAlpha: 0.36,
}})
body {
background-image: url("http://www.sclance.com/backgrounds/svg-background-image/svg-background-image_2162863.jpg");
}
@media only screen and (max-width: 600px) {
body {
background-image: url("https://images.unsplash.com/photo-1527335480088-278dbeec0ad5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80");
}
}
}
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/100/three.min.js"></script>
<script src="https://www.vantajs.com/dist/vanta.birds.min.js"></script>
<div class="body">