{"id":5172,"date":"2020-01-25T15:47:43","date_gmt":"2020-01-25T15:47:43","guid":{"rendered":"https:\/\/webdevtrick.com\/?p=5172"},"modified":"2020-01-25T15:47:43","modified_gmt":"2020-01-25T15:47:43","slug":"material-button-with-ripple-click","status":"publish","type":"post","link":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/","title":{"rendered":"Material Button With Ripple Click Effect Using CSS and JavaScript"},"content":{"rendered":"<p><strong>How we can create a material design button with a spreading circle click effect? Solution: See this Material Button With Ripple Click Effect Using CSS and JavaScript.<\/strong><\/p>\n<p>Previously I have shared some <span><a href=\"https:\/\/webdevtrick.com\/tag\/material-design\" target=\"_blank\" rel=\"noopener noreferrer\">material design<\/a><\/span> programs, this is a <strong>material button UI<\/strong> design with <strong>ripple click<\/strong>. Basically, the <strong>material design<\/strong> has a cleaner\u00a0<b>design<\/b> and consistent look to <b>Websites and apps<\/b> across different platforms, using bold and colorful graphics. And the <strong>ripple effect<\/strong> is a click effect, which like ripple <strong>drop spreading in water<\/strong> and expanding. The material design button contains this type of <strong>ripple click effect<\/strong> for an attractive <span><a href=\"https:\/\/webdevtrick.com\/tag\/ui-design\" target=\"_blank\" rel=\"noopener noreferrer\">UI design<\/a><\/span>.<\/p>\n<p>Today you will learn to create CSS and JavaScript based <strong>material design buttons<\/strong>. Basically, there are <strong>3 buttons<\/strong> and each button has a different style. The <strong>first button<\/strong> is normal with a background color, the <strong>second button<\/strong> does not have a background color it only with border, and the last <span><a href=\"https:\/\/webdevtrick.com\/tag\/button\" target=\"_blank\" rel=\"noopener noreferrer\">button<\/a><\/span> does not have any background color or border. All these <strong>buttons have<\/strong> the same <strong>ripple click<\/strong> effect, when will click on anywhere in the button a circular overlay shape will expand from there.<\/p>\n<p>So, Today I am sharing <strong>Material Button With Ripple Click Effect<\/strong> Using <strong>CSS and JavaScript<\/strong>. There the HTML CSS and JS have equal contribution to the program. I have used CSS for styling and JavaScript for functioning. This button has <span><a href=\"https:\/\/webdevtrick.com\/tag\/minimal\/\" target=\"_blank\" rel=\"noopener noreferrer\">minimal<\/a><\/span> and <strong>attractive UI design<\/strong>, you can use it on your website or web app.<\/p>\n<p>If you are thinking now how this material design buttons actually are, then see the preview given below.<\/p>\n<h3>Preview Of CSS JavaScript Material UI Buttons<\/h3>\n<p>See this video preview to getting an idea of how these buttons look like.<\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-5172-1\" width=\"640\" height=\"503\" loop autoplay preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/material-design-button.mp4?_=1\" \/><a href=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/material-design-button.mp4\">https:\/\/webdevtrick.com\/wp-content\/uploads\/material-design-button.mp4<\/a><\/video><\/div>\n<a class=\"maxbutton-2 maxbutton maxbutton-demo\" target=\"_blank\" rel=\"noopener\" href=\"https:\/\/webdevtrick.com\/demos\/material-design-button\/\"><span class='mb-text'>Live Demo<\/span><\/a>\n<p>Now you can see this visually, also you can see it live by pressing the button given above. If you like this, then get the <strong>source code<\/strong> of its.<\/p>\n<p><span style=\"font-size: 14pt;\">You May Also Like:<\/span><\/p>\n<ul>\n \t<span><\/p>\n<li><a href=\"https:\/\/webdevtrick.com\/javascript-shopping-cart\/\" target=\"_blank\" rel=\"noopener noreferrer\">JavaScript Shopping Cart<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/3d-visualization-elements\/\" target=\"_blank\" rel=\"noopener noreferrer\">3D Visualization Elements<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/bootstrap-expand-cards\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bootstrap Expand Cards<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/css-submit-button-animation\/\" target=\"_blank\" rel=\"noopener noreferrer\">Submit Button Animation<\/a><\/li>\n<p><\/span>\n<\/ul>\n<h2>Material Button With Ripple Click Effect Source Code<\/h2>\n<p>Before <strong>sharing source code<\/strong>, let&#8217;s talk about it. First I have created <strong>3 buttons<\/strong> using HTML <span class=\"lang:default decode:true crayon-inline \">&lt;button&gt;<\/span> tag. In two buttons I have put inline CSS and gave color values using <strong>CSS variables<\/strong>. There I have placed variables using inline CSS, because of changing values later according to the action. Also in the <strong>HTML file<\/strong>, I have linked external files like CSS and JS.<\/p>\n<p>Now <strong>using CSS<\/strong> I have placed all the elements in the right place, as you can see in the preview. There I have used CSS variables to store and pass data easily. I have used <span class=\"lang:default decode:true crayon-inline \">:before<\/span> and <span class=\"lang:default decode:true crayon-inline \">:after<\/span> commands to create the <span><a href=\"https:\/\/webdevtrick.com\/pure-css-click-effect\/\" target=\"_blank\" rel=\"noopener noreferrer\">click effect<\/a><\/span>, and it&#8217;s values handling by JavaScript. Also, I have used <span class=\"lang:default decode:true crayon-inline\">clip-path<\/span> command to make circular expand click, and transition for <strong>animation effect<\/strong> and delay.<\/p>\n<p>JavaScript handling here the<strong> ripple click effect<\/strong> in program. There used JS <span class=\"lang:default decode:true crayon-inline\">.setProperty<\/span> command for set the position and start the click effect from that position. And it <strong>changing CSS values<\/strong> using the variables. Left all other things you will understand after <strong>getting the codes<\/strong>, I can&#8217;t explain all in writing.<\/p>\n<p>For creating this program you have to create 3 files. First file for<strong> HTML<\/strong>, second file for <strong>CSS<\/strong>, and the third file for <strong>JavaScript<\/strong>. Follow the steps to creating this program without any error.<\/p>\n<p><span style=\"font-size: 14pt;\">index.html<\/span><\/p>\n<p>Create an HTML file named &#8216;<em><strong>index.html<\/strong><\/em>&#8216; and put these codes given below.<\/p>\n<pre class=\"height-set:true height:750 lang:xhtml decode:true \" title=\"index.html\">&lt;!DOCTYPE html&gt;\r\n&lt;!-- Code By Webdevtrick ( https:\/\/webdevtrick.com ) --&gt;\r\n&lt;html lang=\"en\" &gt;\r\n&lt;head&gt;\r\n  &lt;meta charset=\"UTF-8\"&gt;\r\n  &lt;title&gt;Material Buttons | Webdevtrick.com&lt;\/title&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"style.css\"&gt;\r\n\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;button&gt;\r\n  Button\r\n&lt;\/button&gt;\r\n\r\n&lt;button style=\"--background: none; --color: hsl(265, 100%, 48%); --border: hsl(265, 100%, 48%);\"&gt;\r\n  Button\r\n&lt;\/button&gt;\r\n\r\n&lt;button style=\"--background: none; --color: hsl(265, 100%, 48%);\"&gt;\r\n  Button\r\n&lt;\/button&gt;\r\n\r\n&lt;script  src=\"function.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><span style=\"font-size: 14pt;\">style.css<\/span><\/p>\n<p>Now create a CSS file named &#8216;<em><strong>style.css<\/strong><\/em>&#8216; and put these codes given here.<\/p>\n<pre class=\"height-set:true height:750 lang:css decode:true\" title=\"style.css\">\/* Code By Webdevtrick ( https:\/\/webdevtrick.com ) *\/\r\n@import url(\"https:\/\/fonts.googleapis.com\/css?family=Roboto:400,500,700&amp;display=swap\");\r\n*,\r\n*:before,\r\n*:after {\r\n  box-sizing: border-box;\r\n  padding: 0;\r\n  margin: 0;\r\n}\r\n\r\nbody {\r\n  min-height: 100vh;\r\n  display: flex;\r\n  flex-direction: column;\r\n  justify-content: center;\r\n  align-items: center;\r\n  color: hsl(0, 0%, 5%);\r\n  background: hsl(0, 0%, 98%);\r\n  font-family: \"Roboto\", sans-serif;\r\n}\r\nbody &gt; * + * {\r\n  margin-block-start: 2.5rem;\r\n}\r\n\r\nbutton {\r\n  --top: 50%;\r\n  --left: 50%;\r\n  --size: 100%;\r\n  --background: hsl(265, 100%, 50%);\r\n  --color: hsl(265, 100%, 100%);\r\n  --border: none;\r\n  color: var(--color);\r\n  background: var(--background);\r\n  border: 1px solid var(--border);\r\n  font-family: inherit;\r\n  padding: 0.6rem 1.25rem;\r\n  font-size: 0.9rem;\r\n  border-radius: 5px;\r\n  font-weight: 500;\r\n  text-transform: uppercase;\r\n  letter-spacing: 1px;\r\n  overflow: hidden;\r\n  position: relative;\r\n  outline: none;\r\n}\r\n\r\nbutton:before {\r\n  content: \"\";\r\n  position: absolute;\r\n  top: 0;\r\n  left: 0;\r\n  width: 100%;\r\n  height: 100%;\r\n  background: currentColor;\r\n  border-radius: inherit;\r\n  opacity: 0;\r\n}\r\nbutton:focus:before,\r\nbutton:hover:before {\r\n  opacity: 0.1;\r\n}\r\n\r\nbutton:after {\r\n  content: \"\";\r\n  position: absolute;\r\n  top: var(--top);\r\n  left: var(--left);\r\n  transform: translate(-50%, -50%);\r\n  width: var(--size);\r\n  height: var(--size);\r\n  background: currentColor;\r\n  clip-path: circle(0%);\r\n  opacity: 0.3;\r\n  border-radius: inherit;\r\n}\r\n\r\nbutton:active:after {\r\n  clip-path: circle(100%);\r\n  opacity: 0;\r\n  transition: clip-path 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.4s ease-in-out;\r\n  transition-delay: -0.1s, 0.5s;\r\n}<\/pre>\n<p><span style=\"font-size: 14pt;\">function.js<\/span><\/p>\n<p>The final step, create a JavaScript file named &#8216;<em><strong>function.js<\/strong><\/em>&#8216; and put the codes.<\/p>\n<pre class=\"height-set:true height:750 lang:js decode:true \" title=\"function.js\">\/\/ Code By Webdevtrick ( https:\/\/webdevtrick.com )\r\nconst buttons = document.querySelectorAll('button');\r\n\r\nfunction handleClick(e) {\r\n  const { layerX, layerY } = e;\r\n  const { width, height } = this.getBoundingClientRect();\r\n\r\n  this.style.setProperty('--top', `${(layerY \/ height) * 100}%`);\r\n  this.style.setProperty('--left', `${(layerX \/ width) * 100}%`);\r\n\r\n  \/\/ for the size consider the distance from the farthest angle\r\n  const dx = layerX &gt; width \/ 2 ? layerX : width - layerX;\r\n  const dy = layerY &gt; height \/ 2 ? layerY : height - layerY;\r\n  const size = Math.sqrt(dx ** 2 + dy ** 2) * 2;\r\n  this.style.setProperty('--size', `${size}px`);\r\n}\r\n\r\nbuttons.forEach(button =&gt; {\r\n  button.addEventListener('mousedown', handleClick);\r\n});<\/pre>\n<p>That&#8217;s It. Now you have successfully created <strong>Material Button With Ripple Click<\/strong> Effect Using <strong>CSS and JavaScript<\/strong>. If you have any doubt or question comment down below.<\/p>\n<p><span style=\"font-family: impact, sans-serif;\">Thanks For Visiting, Keep Visiting.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How we can create a material design button with a spreading circle click effect? Solution: See this Material Button With Ripple Click Effect Using CSS and JavaScript. Previously I have shared some material design programs, this is a material button UI design with ripple click. Basically, the material design has a cleaner\u00a0design and consistent look [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5173,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[43,42,46,22],"tags":[227,453,336,389,432,67,231],"class_list":["post-5172","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-html","category-javascript","category-web-design","tag-button","tag-click-effect","tag-material-design","tag-minimal","tag-ripple-effect","tag-source-code","tag-ui-design"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Material Button With Ripple Click Effect Using CSS and JavaScript<\/title>\n<meta name=\"description\" content=\"Want to create material desing UI buttons? Check out this Material Button With Ripple Click Effect Using CSS and JavaScript. Get demo and source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Material Button With Ripple Click Effect Using CSS and JavaScript\" \/>\n<meta property=\"og:description\" content=\"Want to create material desing UI buttons? Check out this Material Button With Ripple Click Effect Using CSS and JavaScript. Get demo and source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Dev Trick\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webdevtrick\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-25T15:47:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"shaan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"shaan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/\"},\"author\":{\"name\":\"shaan\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3\"},\"headline\":\"Material Button With Ripple Click Effect Using CSS and JavaScript\",\"datePublished\":\"2020-01-25T15:47:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/\"},\"wordCount\":668,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webdevtrick.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg\",\"keywords\":[\"button\",\"click effect\",\"material design\",\"minimal\",\"ripple effect\",\"source code\",\"ui design\"],\"articleSection\":[\"CSS\",\"HTML\",\"JavaScript\",\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/\",\"url\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/\",\"name\":\"Material Button With Ripple Click Effect Using CSS and JavaScript\",\"isPartOf\":{\"@id\":\"https:\/\/webdevtrick.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg\",\"datePublished\":\"2020-01-25T15:47:43+00:00\",\"description\":\"Want to create material desing UI buttons? Check out this Material Button With Ripple Click Effect Using CSS and JavaScript. Get demo and source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage\",\"url\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg\",\"contentUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg\",\"width\":1200,\"height\":630,\"caption\":\"material button with ripple click\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webdevtrick.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Material Button With Ripple Click Effect Using CSS and JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webdevtrick.com\/#website\",\"url\":\"https:\/\/webdevtrick.com\/\",\"name\":\"Web Dev Trick\",\"description\":\"HTML5, CSS3, JS, PHP Source Code &amp; Tutorial\",\"publisher\":{\"@id\":\"https:\/\/webdevtrick.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webdevtrick.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webdevtrick.com\/#organization\",\"name\":\"Web Dev Trick\",\"url\":\"https:\/\/webdevtrick.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png\",\"contentUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png\",\"width\":512,\"height\":512,\"caption\":\"Web Dev Trick\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webdevtrick\/\",\"https:\/\/pinterest.com\/webdevtrick\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3\",\"name\":\"shaan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g\",\"caption\":\"shaan\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Material Button With Ripple Click Effect Using CSS and JavaScript","description":"Want to create material desing UI buttons? Check out this Material Button With Ripple Click Effect Using CSS and JavaScript. Get demo and source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/","og_locale":"en_US","og_type":"article","og_title":"Material Button With Ripple Click Effect Using CSS and JavaScript","og_description":"Want to create material desing UI buttons? Check out this Material Button With Ripple Click Effect Using CSS and JavaScript. Get demo and source code.","og_url":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/","og_site_name":"Web Dev Trick","article_publisher":"https:\/\/www.facebook.com\/webdevtrick\/","article_published_time":"2020-01-25T15:47:43+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg","type":"image\/jpeg"}],"author":"shaan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"shaan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#article","isPartOf":{"@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/"},"author":{"name":"shaan","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3"},"headline":"Material Button With Ripple Click Effect Using CSS and JavaScript","datePublished":"2020-01-25T15:47:43+00:00","mainEntityOfPage":{"@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/"},"wordCount":668,"commentCount":0,"publisher":{"@id":"https:\/\/webdevtrick.com\/#organization"},"image":{"@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage"},"thumbnailUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg","keywords":["button","click effect","material design","minimal","ripple effect","source code","ui design"],"articleSection":["CSS","HTML","JavaScript","Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/","url":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/","name":"Material Button With Ripple Click Effect Using CSS and JavaScript","isPartOf":{"@id":"https:\/\/webdevtrick.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage"},"image":{"@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage"},"thumbnailUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg","datePublished":"2020-01-25T15:47:43+00:00","description":"Want to create material desing UI buttons? Check out this Material Button With Ripple Click Effect Using CSS and JavaScript. Get demo and source code.","breadcrumb":{"@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webdevtrick.com\/material-button-with-ripple-click\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#primaryimage","url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg","contentUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/matrial-button-with-ripple-click.jpg","width":1200,"height":630,"caption":"material button with ripple click"},{"@type":"BreadcrumbList","@id":"https:\/\/webdevtrick.com\/material-button-with-ripple-click\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webdevtrick.com\/"},{"@type":"ListItem","position":2,"name":"Material Button With Ripple Click Effect Using CSS and JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/webdevtrick.com\/#website","url":"https:\/\/webdevtrick.com\/","name":"Web Dev Trick","description":"HTML5, CSS3, JS, PHP Source Code &amp; Tutorial","publisher":{"@id":"https:\/\/webdevtrick.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webdevtrick.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webdevtrick.com\/#organization","name":"Web Dev Trick","url":"https:\/\/webdevtrick.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/","url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png","contentUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png","width":512,"height":512,"caption":"Web Dev Trick"},"image":{"@id":"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webdevtrick\/","https:\/\/pinterest.com\/webdevtrick\/"]},{"@type":"Person","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3","name":"shaan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g","caption":"shaan"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/5172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/comments?post=5172"}],"version-history":[{"count":10,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/5172\/revisions"}],"predecessor-version":[{"id":5184,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/5172\/revisions\/5184"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/media\/5173"}],"wp:attachment":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/media?parent=5172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/categories?post=5172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/tags?post=5172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}