Pistachio pattern
How do I make an pistachio pattern?
This is me, shamelessly using codepen for a quick preview of my first attempt at a seamless pattern.. What is a pistachio pattern? How do you make a pistachio pattern? This script and codes were developed by Anghelos Coulon on 31 August 2022, Wednesday.
Pistachio pattern - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pistachio pattern</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <head>
<link href='http://fonts.googleapis.com/css?family=Rancho' rel='stylesheet' type='text/css'>
</head>
<body> <div class="message"> <h1>Pistache</h1> <p>Mmmmmm... La pistache... Ça met l'eau à la bouche.</p> <div class="button" id="button1"></div> <div class="button" id="button2"></div> <div class="button" id="button3"></div> <div class="button" id="button4"></div> <div class="button" id="button5"></div> <div class="button" id="button6"></div> </div>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Pistachio pattern - Script Codes CSS Codes
body{ background-image: url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-small.png");
}
.message{ position:absolute; margin:auto; top:0;right:0;bottom:0;left:0; width:280px; height:380px; background-color:whitesmoke; border-radius:20px; box-shadow:0px 2px 5px rgba(0,0,0,0.3); text-align:center; padding:20px;
}
h1{ font-family:Rancho; font-size:4em; color:#373737; line-height:20px;
}
p{ font-size:1.5em; color:#373737; font-family:Verdana,sans-serif;
}
@media screen and (-webkit-min-device-pixel-ratio:0) { h1,p{ text-shadow:0 0 1px rgba(55,55,55,0.2); }
}
.button{ display:inline-block; width:50px; height:50px; margin:10px; border-radius:4px; box-shadow: 1px 1px 2px rgba(0,0,0,0.2); cursor:pointer;
}
#button1{ background-image: url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern.png"); background-position:120px 80px;
}
#button2{ background-image: url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-small.png"); background-position:90px 70px;
}
#button3{ background-image: url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-semicolor.png"); background-position:90px 70px;
}
#button4{ background-image: url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-green.png"); background-position:120px 80px;
}
#button5{ background-image: url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-white-green.png"); background-position:90px 70px;
}
#button6{ background-image: url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-color-green.png"); background-position:90px 70px;
}
#button1:hover, #button2:hover, #button3:hover, #button4:hover, #button5:hover, #button6:hover{ background-position:-10px 30px; box-shadow:inset 1px 1px 2px rgba(0,0,0,0.2);
}
Pistachio pattern - Script Codes JS Codes
/* This is me, shamelessly using codepen for a quick preview of my first attempt at a seamless pattern.
*/
$('#button1').click(function(){ $('body').css('background-image', 'url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern.png")');
});
$('#button2').click(function(){ $('body').css('background-image', 'url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-small.png")');
});
$('#button3').click(function(){ $('body').css('background-image', 'url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-semicolor.png")');
});
$('#button4').click(function(){ $('body').css('background-image', 'url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-green.png")');
});
$('#button5').click(function(){ $('body').css('background-image', 'url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-white-green.png")');
});
$('#button6').click(function(){ $('body').css('background-image', 'url("https://dl.dropboxusercontent.com/u/4186912/pistache-pattern-color-green.png")');
});
Developer | Anghelos Coulon |
Username | anguo |
Uploaded | August 31, 2022 |
Rating | 3 |
Size | 2,502 Kb |
Views | 34,408 |
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!
Name | Size |
Night reading mode | 3,048 Kb |
Salt Shaker CSS-Animated SVG | 4,125 Kb |
Donate Button With CSS Animated God Rays | 2,561 Kb |
Pistachio skin remover machine, animated SVG | 12,670 Kb |
Lemon | 4,621 Kb |
Sheji | 2,287 Kb |
Simple always-visible comment indicator | 3,250 Kb |
Rotating oven - Animated SVG | 5,541 Kb |
Ripple | 2,093 Kb |
Pure CSS Giftbox | 2,082 Kb |
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!
Name | Username | Size |
CSS Google Now | Jackmoran | 3,196 Kb |
DevCamp 2014 - Denver Public Library | See8ch | 5,033 Kb |
Flickering Light Text Effect | Mandymichael | 3,315 Kb |
Flat buttons for Eliassen.com | Kdooley89 | 1,737 Kb |
Portfolio Page | KaylaMT | 1,983 Kb |
Fluid Layout with Float | Jxqr97 | 1,785 Kb |
Mostly Fluid | Mccreath | 3,308 Kb |
Ripples in water | Nobitagit | 2,704 Kb |
Plotting Points with D3.js | Laurakelly | 31,996 Kb |
Pruebas de d3.js | Juanmanuelcarnerero | 2,485 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!