{"id":8551,"date":"2021-08-31T12:40:10","date_gmt":"2021-08-31T12:40:10","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=8551"},"modified":"2022-04-13T16:34:28","modified_gmt":"2022-04-13T16:34:28","slug":"different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/","title":{"rendered":"Different ways to write the transitions in any tag or button using HTML &#038; CSS."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this blog, I am creating different transitions in buttons &amp; div using HTML &amp; CSS. So, Let&#8217;s create an <strong>index.html &amp; style.css <\/strong>below-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/528381dbc113c3a54c2e37497f48a6aa.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">In, this <strong>index.html <\/strong>multiple div, tag with multiple class which is defined below <strong>style.css-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/3f44439cc953273e06776c3f22faa0ed.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">In, this style.css I am used multiple classes with multiple functionalities as color, padding, margin, opacity, width &amp; height. When you using this index.html &amp; style.css then shows below image-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"993\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-1024x993.png\" alt=\"\" class=\"wp-image-8552\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-1024x993.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-300x291.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-768x745.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-1536x1490.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>When you used the cursor then shows transitions property hover effects.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Below is one more <strong>index.html <\/strong>for transitions hover property-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/4e5ed0eba5e1fb4b0728411425cfcf43.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">Below is <strong>style.css <\/strong>for the used upper <strong>index.html &#8211;<\/strong><\/p>\n\n\n\nbutton {\n\theight: 90px;\n\twidth: 290px;\n\tfont-size: 28px;\n\tcolor: white;\n\tborder: none;\n\tbackground-color: blue;\n\ttransition: all 3s ease-in 2s\n}\n\nbutton:hover {\n\tbackground-color: green;\n\tcolor: black;\n\tborder-radius: 50%;\n}\n\n\n\n<p class=\"wp-block-paragraph\">When you used <strong>index.html &amp; style.css <\/strong>then show below-<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"487\" height=\"188\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-210.png\" alt=\"\" class=\"wp-image-8553\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-210.png 487w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-210-300x116.png 300w\" sizes=\"auto, (max-width: 487px) 100vw, 487px\" \/><figcaption>When you used the cursor then show transition hover effects.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, I am creating different transitions in buttons &amp; div using HTML &amp; CSS. So, Let&#8217;s create an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5309],"tags":[6616,5134,4459,6615,1452],"class_list":["post-8551","post","type-post","status-publish","format-standard","hentry","category-css","tag-button","tag-css","tag-html","tag-transitions","tag-ways"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Different ways to write the transitions in any tag or button using HTML &amp; CSS. - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Different ways to write the transitions in any tag or button using HTML &amp; CSS. - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"In this blog, I am creating different transitions in buttons &amp; div using HTML &amp; CSS. So, Let&#8217;s create an [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-31T12:40:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-13T16:34:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-1024x993.png\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"Different ways to write the transitions in any tag or button using HTML &#038; CSS.\",\"datePublished\":\"2021-08-31T12:40:10+00:00\",\"dateModified\":\"2022-04-13T16:34:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/\"},\"wordCount\":168,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/css-transitions-transformation-1024x993.png\",\"keywords\":[\"button\",\"css\",\"HTML\",\"transitions\",\"Ways\"],\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/\",\"name\":\"Different ways to write the transitions in any tag or button using HTML & CSS. - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/css-transitions-transformation-1024x993.png\",\"datePublished\":\"2021-08-31T12:40:10+00:00\",\"dateModified\":\"2022-04-13T16:34:28+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/css-transitions-transformation.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/css-transitions-transformation.png\",\"width\":1920,\"height\":1862},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Different ways to write the transitions in any tag or button using HTML &#038; CSS.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Different ways to write the transitions in any tag or button using HTML & CSS. - scmGalaxy","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:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/","og_locale":"en_US","og_type":"article","og_title":"Different ways to write the transitions in any tag or button using HTML & CSS. - scmGalaxy","og_description":"In this blog, I am creating different transitions in buttons &amp; div using HTML &amp; CSS. So, Let&#8217;s create an [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/","og_site_name":"scmGalaxy","article_published_time":"2021-08-31T12:40:10+00:00","article_modified_time":"2022-04-13T16:34:28+00:00","og_image":[{"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-1024x993.png","type":"","width":"","height":""}],"author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"Different ways to write the transitions in any tag or button using HTML &#038; CSS.","datePublished":"2021-08-31T12:40:10+00:00","dateModified":"2022-04-13T16:34:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/"},"wordCount":168,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-1024x993.png","keywords":["button","css","HTML","transitions","Ways"],"articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/","name":"Different ways to write the transitions in any tag or button using HTML & CSS. - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation-1024x993.png","datePublished":"2021-08-31T12:40:10+00:00","dateModified":"2022-04-13T16:34:28+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/css-transitions-transformation.png","width":1920,"height":1862},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/different-ways-to-write-the-transitions-in-any-tag-or-button-using-html-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Different ways to write the transitions in any tag or button using HTML &#038; CSS."}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=8551"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8551\/revisions"}],"predecessor-version":[{"id":8554,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8551\/revisions\/8554"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=8551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=8551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=8551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}