CSS Snowboard Gallery (updated)

Developer
Size
4,495 Kb
Views
24,288

How do I make an css snowboard gallery (updated)?

Still a work in progress, I still want to validate the input and also store the image urls in localstorage.. What is a css snowboard gallery (updated)? How do you make a css snowboard gallery (updated)? This script and codes were developed by Patrick Cox on 04 September 2022, Sunday.

CSS Snowboard Gallery (updated) Previews

CSS Snowboard Gallery (updated) - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Snowboard Gallery (updated)</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ *{ box-sizing: border-box;
}
body{ background: -moz-linear-gradient(top, rgba(89,142,212,1) 0%, rgba(150,187,232,1) 80%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(89,142,212,1)), color-stop(80%,rgba(150,187,232,1))); background: -webkit-linear-gradient(top, rgba(89,142,212,1) 0%,rgba(150,187,232,1) 80%); background: linear-gradient(to bottom, rgba(89,142,212,1) 0%,rgba(150,187,232,1) 80%); box-shadow: inset 0 0 200px rgba(0, 86, 149, 0.8); height: 100%; padding: 3% 0 10%;
}
#title{ color: #f3f3f3; font-size: 18px; font-style: italic; left: 30px; position: absolute; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); top: 10px;
}
section{ margin: 0 auto; width: 870px;
}
.snowboard{ box-shadow: 0 5px 22px rgba(0, 0, 0, 0.5); display: inline-block; margin: 10px; height: 622px; width: 122px;
}
.snowboard:hover{ box-shadow: 0 5px 22px rgba(0, 0, 0, 0.7); cursor: pointer;
}
.snowboard, .snowboard:after{ border-radius: 60px; height: 620px; width: 120px;
}
.snowboard:after{ background: -moz-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.3) 10%, rgba(255,255,255,0) 29%, rgba(255,255,255,0) 69%, rgba(0,0,0,0.29) 90%, rgba(0,0,0,0.3) 91%, rgba(0,0,0,0.1) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.1)), color-stop(10%,rgba(0,0,0,0.3)), color-stop(29%,rgba(255,255,255,0)), color-stop(69%,rgba(255,255,255,0)), color-stop(90%,rgba(0,0,0,0.29)), color-stop(91%,rgba(0,0,0,0.3)), color-stop(100%,rgba(0,0,0,0.1))); background: -webkit-linear-gradient(top, rgba(255,255,255,0.1) 0%,rgba(0,0,0,0.3) 10%,rgba(255,255,255,0) 29%,rgba(255,255,255,0) 69%,rgba(0,0,0,0.29) 90%,rgba(0,0,0,0.3) 91%,rgba(0,0,0,0.1) 100%); background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%,rgba(0,0,0,0.3) 10%,rgba(255,255,255,0) 29%,rgba(255,255,255,0) 69%,rgba(0,0,0,0.29) 90%,rgba(0,0,0,0.3) 91%,rgba(0,0,0,0.1) 100%); border: 1px solid rgba(0,0,0,0.5); content: ""; position: absolute;
}
/* set the default bg images */
.snowboard:nth-child(1){ background: url('http://www.asymbolgallery.com/images/products/mp_004.jpg') no-repeat center top; background-size: cover;
}
.snowboard:nth-child(2){ background: url('http://www.asymbolgallery.com/images/products/mp_003.jpg') no-repeat right top; background-size: cover;
}
.snowboard:nth-child(3){ background: url('http://www.asymbolgallery.com/images/products/jl_001.jpg') no-repeat center top; background-size: cover;
}
.snowboard:nth-child(4){ background: url('http://www.asymbolgallery.com/images/products/sos_mp.jpg') no-repeat center top; background-size: cover;
}
.snowboard:nth-child(5){ background: url('http://www.asymbolgallery.com/images/products/nr_002.jpg') no-repeat left top; background-size: cover;
}
.snowboard:nth-child(6){ background: url('http://www.asymbolgallery.com/images/products/ah_0001.jpg') no-repeat right top; background-size: cover;
}
/* editBoard div */
#editBoard{ background: #a0b4dc; border: 1px solid rgba(45,60,91,0.8); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; box-shadow: 0 8px 15px rgba(45,60,91,0.4); color: #333; display: none; font-family: 'Helvetica', arial, sans-serif; font-size: 16px; left:50%; margin-left:-200px; padding: 26px 30px 30px 30px; position: absolute; top: 0; width: 400px; z-index: 10;
}
#editBoard label{ margin-top: 50px;
}
#editBoard button{ background: #ff3520; background: -moz-linear-gradient(top, #d77f76 0%, #ff5847 4%, #ff3520 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d77f76), color-stop(4%,#ff5847), color-stop(100%,#ff3520)); background: -webkit-linear-gradient(top, #d77f76 0%,#ff5847 4%,#ff3520 100%); background: linear-gradient(to bottom, #d77f76 0%,#ff5847 4%,#ff3520 100%); border: 1px solid rgba(197, 41, 25, 0.25); border-radius: 8px; box-shadow: 0 .2rem .6rem rgba(0, 0, 0, 0.2); color: #f3f3f3; font-family: 'helvetica', arial, sans-serif; font-size: 14px; font-weight: normal; letter-spacing: 2px; margin: 0 auto; padding: 8px 20px; text-align: center; text-shadow: 0 -.1rem rgba(197, 41, 25, 0.9);
}
#editBoard button:hover{ border: 1px solid rgba(197, 41, 25, 0.9);
}
#boardURL{ color: #444; margin: 10px 0 12px; padding: 6px; width: 100%;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="editBoard"> <label>Change Board Artwork</label> <input type="text" name="boardURL" id="boardURL" placeholder="your image url here" tabindex="1" /> <button>Set the Image</button>
</div>
<p id="title">{ click a board to set its artwork }</p>
<section> <div class="snowboard" id="first"></div> <div class="snowboard" id="second"></div> <div class="snowboard" id="third"></div> <div class="snowboard" id="fourth"></div> <div class="snowboard" id="fifth"></div> <div class="snowboard" id="sixth"></div>
</section> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

CSS Snowboard Gallery (updated) - Script Codes CSS Codes

*{ box-sizing: border-box;
}
body{ background: -moz-linear-gradient(top, rgba(89,142,212,1) 0%, rgba(150,187,232,1) 80%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(89,142,212,1)), color-stop(80%,rgba(150,187,232,1))); background: -webkit-linear-gradient(top, rgba(89,142,212,1) 0%,rgba(150,187,232,1) 80%); background: linear-gradient(to bottom, rgba(89,142,212,1) 0%,rgba(150,187,232,1) 80%); box-shadow: inset 0 0 200px rgba(0, 86, 149, 0.8); height: 100%; padding: 3% 0 10%;
}
#title{ color: #f3f3f3; font-size: 18px; font-style: italic; left: 30px; position: absolute; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); top: 10px;
}
section{ margin: 0 auto; width: 870px;
}
.snowboard{ box-shadow: 0 5px 22px rgba(0, 0, 0, 0.5); display: inline-block; margin: 10px; height: 622px; width: 122px;
}
.snowboard:hover{ box-shadow: 0 5px 22px rgba(0, 0, 0, 0.7); cursor: pointer;
}
.snowboard, .snowboard:after{ border-radius: 60px; height: 620px; width: 120px;
}
.snowboard:after{ background: -moz-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.3) 10%, rgba(255,255,255,0) 29%, rgba(255,255,255,0) 69%, rgba(0,0,0,0.29) 90%, rgba(0,0,0,0.3) 91%, rgba(0,0,0,0.1) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.1)), color-stop(10%,rgba(0,0,0,0.3)), color-stop(29%,rgba(255,255,255,0)), color-stop(69%,rgba(255,255,255,0)), color-stop(90%,rgba(0,0,0,0.29)), color-stop(91%,rgba(0,0,0,0.3)), color-stop(100%,rgba(0,0,0,0.1))); background: -webkit-linear-gradient(top, rgba(255,255,255,0.1) 0%,rgba(0,0,0,0.3) 10%,rgba(255,255,255,0) 29%,rgba(255,255,255,0) 69%,rgba(0,0,0,0.29) 90%,rgba(0,0,0,0.3) 91%,rgba(0,0,0,0.1) 100%); background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%,rgba(0,0,0,0.3) 10%,rgba(255,255,255,0) 29%,rgba(255,255,255,0) 69%,rgba(0,0,0,0.29) 90%,rgba(0,0,0,0.3) 91%,rgba(0,0,0,0.1) 100%); border: 1px solid rgba(0,0,0,0.5); content: ""; position: absolute;
}
/* set the default bg images */
.snowboard:nth-child(1){ background: url('http://www.asymbolgallery.com/images/products/mp_004.jpg') no-repeat center top; background-size: cover;
}
.snowboard:nth-child(2){ background: url('http://www.asymbolgallery.com/images/products/mp_003.jpg') no-repeat right top; background-size: cover;
}
.snowboard:nth-child(3){ background: url('http://www.asymbolgallery.com/images/products/jl_001.jpg') no-repeat center top; background-size: cover;
}
.snowboard:nth-child(4){ background: url('http://www.asymbolgallery.com/images/products/sos_mp.jpg') no-repeat center top; background-size: cover;
}
.snowboard:nth-child(5){ background: url('http://www.asymbolgallery.com/images/products/nr_002.jpg') no-repeat left top; background-size: cover;
}
.snowboard:nth-child(6){ background: url('http://www.asymbolgallery.com/images/products/ah_0001.jpg') no-repeat right top; background-size: cover;
}
/* editBoard div */
#editBoard{ background: #a0b4dc; border: 1px solid rgba(45,60,91,0.8); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; box-shadow: 0 8px 15px rgba(45,60,91,0.4); color: #333; display: none; font-family: 'Helvetica', arial, sans-serif; font-size: 16px; left:50%; margin-left:-200px; padding: 26px 30px 30px 30px; position: absolute; top: 0; width: 400px; z-index: 10;
}
#editBoard label{ margin-top: 50px;
}
#editBoard button{ background: #ff3520; background: -moz-linear-gradient(top, #d77f76 0%, #ff5847 4%, #ff3520 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d77f76), color-stop(4%,#ff5847), color-stop(100%,#ff3520)); background: -webkit-linear-gradient(top, #d77f76 0%,#ff5847 4%,#ff3520 100%); background: linear-gradient(to bottom, #d77f76 0%,#ff5847 4%,#ff3520 100%); border: 1px solid rgba(197, 41, 25, 0.25); border-radius: 8px; box-shadow: 0 .2rem .6rem rgba(0, 0, 0, 0.2); color: #f3f3f3; font-family: 'helvetica', arial, sans-serif; font-size: 14px; font-weight: normal; letter-spacing: 2px; margin: 0 auto; padding: 8px 20px; text-align: center; text-shadow: 0 -.1rem rgba(197, 41, 25, 0.9);
}
#editBoard button:hover{ border: 1px solid rgba(197, 41, 25, 0.9);
}
#boardURL{ color: #444; margin: 10px 0 12px; padding: 6px; width: 100%;
}

CSS Snowboard Gallery (updated) - Script Codes JS Codes

// default images by http://www.asymbolgallery.com
// a continual work in progress... no input validation and I wanna store the values in lovalStorage for next time.
function setImage(boardid){ $('#editBoard').show(); $('#editBoard input').val(''); $('#editBoard button').click(function() { var url = $('#editBoard input').val(); if(url === ""){ alert("um... like, there's no url?"); }else{ $('#' + boardid).css({ 'background' : 'url(' + url + ') no-repeat center top', 'background-size' : 'cover' }); $('#editBoard').hide(); } });
}
$('.snowboard').click(function() { var boardid = this.id; setImage(boardid);
});
CSS Snowboard Gallery (updated) - Script Codes
CSS Snowboard Gallery (updated) - Script Codes
Home Page Home
Developer Patrick Cox
Username pcridesagain
Uploaded September 04, 2022
Rating 3.5
Size 4,495 Kb
Views 24,288
Do you need developer help for CSS Snowboard Gallery (updated)?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Patrick Cox (pcridesagain) Script Codes
Create amazing sales emails with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!