Comment image widget
How do I make an comment image widget?
Inspired by Dribbble (http://dribbble.com/shots/1093954-Places-comments). What is a comment image widget? How do you make a comment image widget? This script and codes were developed by Jaflo on 12 September 2022, Monday.
Comment image widget - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Comment image widget</title> <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! */ body { background: #34373e; font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
}
#container { width: 376px; height: 515px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 5px rgba(0,0,0,0.8); background: #f4f4f4; /*margin: -258px -188px; position: absolute; top: 50%; left: 50%;*/ margin: 10px auto;
}
#image { background-image: url("http://www.shakti-wellness.net/pics/gal/10/2.jpg"); background-size: cover; width: 100%; height: 258px; border-bottom: 4px solid #f2624a;
}
#image > span { border: 2px solid white; border-radius: 100px; width: 40px; height: 40px; display: block; line-height: 40px; text-align: center; color: white; float: right; margin: 20px; font-size: 20px; opacity: 0.7; transition: all 0.3s;
}
#image > span:hover { opacity: 1;
}
#image > span.liked { box-shadow: 0 0 10px white, inset 0 0 10px white; text-shadow: 0 0 10px white; opacity: 1;
}
#stuff { color: #84878e; height: 40px; padding: 20px;
}
#stuff > div { background: #1fc198; padding: 10px; font-size: 14px; color: white; display: inline-block; float: right; border-radius: 3px; transition: background 0.2s;
}
#stuff > div:hover { background: #0a8f6c;
}
#stuff > strong { font-size: 2em; color: #37383d;
}
#separator { width: 40%; border-bottom: 1px solid #d4d4d4; margin: 5px auto;
}
#comments { line-height: 150px; text-align: center; opacity: 0.6; font-family: "Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="container"> <div id="image"><span>❤</span></div> <div id="stuff"> <div>Add Comment</div> <strong>2</strong> Comments </div> <div id="separator"></div> <div id="comments"> Comments could not be loaded </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Comment image widget - Script Codes CSS Codes
body { background: #34373e; font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
}
#container { width: 376px; height: 515px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 5px rgba(0,0,0,0.8); background: #f4f4f4; /*margin: -258px -188px; position: absolute; top: 50%; left: 50%;*/ margin: 10px auto;
}
#image { background-image: url("http://www.shakti-wellness.net/pics/gal/10/2.jpg"); background-size: cover; width: 100%; height: 258px; border-bottom: 4px solid #f2624a;
}
#image > span { border: 2px solid white; border-radius: 100px; width: 40px; height: 40px; display: block; line-height: 40px; text-align: center; color: white; float: right; margin: 20px; font-size: 20px; opacity: 0.7; transition: all 0.3s;
}
#image > span:hover { opacity: 1;
}
#image > span.liked { box-shadow: 0 0 10px white, inset 0 0 10px white; text-shadow: 0 0 10px white; opacity: 1;
}
#stuff { color: #84878e; height: 40px; padding: 20px;
}
#stuff > div { background: #1fc198; padding: 10px; font-size: 14px; color: white; display: inline-block; float: right; border-radius: 3px; transition: background 0.2s;
}
#stuff > div:hover { background: #0a8f6c;
}
#stuff > strong { font-size: 2em; color: #37383d;
}
#separator { width: 40%; border-bottom: 1px solid #d4d4d4; margin: 5px auto;
}
#comments { line-height: 150px; text-align: center; opacity: 0.6; font-family: "Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
}
Comment image widget - Script Codes JS Codes
// Inspired by Dribbble (http://dribbble.com/shots/1093954-Places-comments)
$("#image > span").click(function() { $(this).toggleClass("liked");
});
Developer | Jaflo |
Username | jaflo |
Uploaded | September 12, 2022 |
Rating | 4.5 |
Size | 3,176 Kb |
Views | 26,312 |
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 |
SimpleGroove bookmarklet | 263,204 Kb |
A Pen by jaflo | 2,066 Kb |
D3 animation | 2,998 Kb |
Little loader | 1,979 Kb |
Map animation | 4,533 Kb |
Menu toggle button | 2,411 Kb |
Share button for images | 2,715 Kb |
Moving picture header | 2,984 Kb |
Scroll bar manipulation | 2,344 Kb |
Resizable mail icon | 2,826 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 |
Collapsing Widget | Er40 | 4,279 Kb |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
Polygon Dodecahedron in CSS | Vennsoh | 7,606 Kb |
Cool audio | Bigliam | 1,868 Kb |
React Vote Component | Souporserious | 5,465 Kb |
CSS 3D Radio buttons | Andreasnylin | 1,650 Kb |
Tooltip in table | Roine | 3,713 Kb |
Svg sky | Omodev | 7,070 Kb |
Geildanke typography | Fischaela | 3,249 Kb |
Calendar | Miroot | 2,033 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!