Comment image widget

Developer
Size
3,176 Kb
Views
26,312

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 Previews

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");
});
Comment image widget - Script Codes
Comment image widget - Script Codes
Home Page Home
Developer Jaflo
Username jaflo
Uploaded September 12, 2022
Rating 4.5
Size 3,176 Kb
Views 26,312
Do you need developer help for Comment image widget?

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!

Jaflo (jaflo) Script Codes
Create amazing web content 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!