Pistachio pattern

Size
2,502 Kb
Views
34,408

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 Previews

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")');
});
Pistachio pattern - Script Codes
Pistachio pattern - Script Codes
Home Page Home
Developer Anghelos Coulon
Username anguo
Uploaded August 31, 2022
Rating 3
Size 2,502 Kb
Views 34,408
Do you need developer help for Pistachio pattern?

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!

Anghelos Coulon (anguo) Script Codes
Create amazing blog posts 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!