{"id":11146,"date":"2024-01-28T21:35:29","date_gmt":"2024-01-28T16:35:29","guid":{"rendered":"https:\/\/codehim.com\/?p=11146"},"modified":"2024-02-03T13:18:02","modified_gmt":"2024-02-03T08:18:02","slug":"floating-words-animation-using-vanilla-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/","title":{"rendered":"Floating Words Animation Using Vanilla JavaScript"},"content":{"rendered":"<p>This Vanilla JavaScript code snippet helps you to create floating <a href=\"https:\/\/codehim.com\/html5-css3\/moving-text-animation-css\/\" target=\"_blank\" rel=\"noopener\">words animation<\/a>. It works by animating words from a given lyric, making them gracefully move across the screen. The magic happens as the code dynamically determines word frequencies and assigns different speeds to each word. Perfect for adding a touch of artistry to your site, this animation offers a cool and visually engaging experience.<\/p>\n<h2>How to Create Floating Words Animation using Vanilla JavaScript<\/h2>\n<p>1. Begin by adding a canvas element to your HTML file. This is where the animation will take place.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;canvas id=\"c\"&gt;&lt;\/canvas&gt;<\/pre>\n<p>2. Style the canvas by adding a background and setting a minimum height. Make sure to include the following CSS code to enhance the visual experience.<\/p>\n<pre class=\"prettyprint linenums lang-css\">body{\r\n  background:#141414 !important;\r\n  min-height: 720px;\r\n position: relative;\r\n  overflow:hidden;\r\n}<\/pre>\n<p>3. Finally, copy and paste the following JavaScript code into your script file or within a <code>&lt;script&gt;<\/code> tag. This code dynamically handles the lyrics, initializes the canvas, and creates a captivating floating effect.<\/p>\n<pre class=\"prettyprint linenums lang-js\">window.onload = function(argument) {\r\n\r\n\t\/\/ var lyric = \"i couldn't take it couldn't stand another minute couldn't bear another day without you in it\";\r\n\tvar lyric = \"i couldn't take it couldn't stand another minute couldn't bear another day without you in it all of the joy that I had known for my life was stripped away from me the minute that you died to have you in my life was all i ever wanted but now without you I'm a soul forever haunted can't help but feel that i had taken you for granted no way in hell that i can ever comprehend this i wasn't dreaming when they told me you were gone i was wide awake and feeling that they had to be wrong how could you leave me when you swore that you would stay now i'm trapped inside a nightmare every single fucking day it's like a movie but there's not a happy ending every scene fades black and there's no pretending this little fairy tale doesn't seem to end well theres no knight in shining armor who will wake me from the spell i know you didn't plan this you tried to do what's right but in the middle of this madness i'm the one you left to win this fight red like roses fills my head with dreams and finds me always closer to the emptiness and sadness that has come to take the place of you i know you're broken down by anger and by sadness you feel I left you in a world that's full of madness wish i could talk to you if only for a minute make you understand the reasons why i did it i wanna tell you that you're all that ever mattered want you to know that for eternity i'm shattered i tried so hard just to protect you but i failed to and in a prison of abandonment i've jailed you i never planned that i would leave you there alone i was sure that i would see you when i made it back home and all the times I swore that it would be okay now i'm nothing but a liar and you're thrown into the fray this bedtime story ends with misery ever after the pages are torn and there's no final chapter i didn't have a choice I did what I had to do i made a sacrifice but forced a bigger sacrifice on you i know you've lived a nightmare i caused you so much pain but baby please don't do what i did i don't want you to waste your life in vain red like roses fills my head with dreams and finds me always closer to the emptiness and sadness that has come to take the place of you you're not the only one who needed me i thought you understood you were the one i needed and you left me as I always feared you would would I change it if i could? it doesn't matter how the petals scatter now every nightmare just discloses it's your blood that's red like roses and no matter what I do nothing ever takes the place of you red like roses fills my head with dreams and finds me always closer to the emptiness and sadness that has come to take the place of you\";\r\n\tvar words = {};\r\n\tvar words_attr = [];\r\n\tstring_handle(lyric);\r\n\r\n\tvar canvas = document.getElementById('c');\r\n\tcanvas.width = window.innerWidth;\r\n\tcanvas.height = window.innerHeight;\r\n\r\n\tif (canvas.getContext) {\r\n\t\tvar c = canvas.getContext('2d'),\r\n\t\t\tw = canvas.width,\r\n\t\t\th = canvas.height;\r\n\r\n\t\tc.strokeStyle = 'red';\r\n\t\tc.fillStyle = 'white';\r\n\t\tc.lineWidth = 5;\r\n\r\n\t\t\/\/ constructor\r\n\t\tWord = function(key) {\r\n\t\t\tthis.text = key;\r\n\t\t\tthis.x = Math.random() * w;\r\n\t\t\tthis.y = Math.random() * h;\r\n\t\t\tthis.font = words[key] * 10 + 'px arial'\r\n\t\t\tthis.speed = (words[key]);\r\n\t\t}\r\n\t\tfor (key in words) {\r\n\t\t\twords_attr.push(new Word(key));\r\n\t\t}\r\n\t\tconsole.log(words_attr.length);\r\n\r\n\t\tfunction animation() {\r\n\t\t\tfor (var i = 0; i &lt; words_attr.length; i++) {\r\n\t\t\t\tc.font = words_attr[i].font;\r\n\t\t\t\tc.fillText(words_attr[i].text, words_attr[i].x, words_attr[i].y);\r\n\t\t\t\twords_attr[i].width = c.measureText(words_attr[i].text).width;\r\n\t\t\t\tc.stroke();\r\n\t\t\t}\r\n\t\t\tmove();\r\n\t\t}\r\n\r\n\t\tfunction move() {\r\n\t\t\tfor (var i = 0; i &lt; words_attr.length; i++) {\r\n\t\t\t\tif (words_attr[i].x &gt; w) {\r\n\t\t\t\t\twords_attr[i].x = -words_attr[i].width;\r\n\t\t\t\t\twords_attr[i].y = Math.random()*h;\r\n\t\t\t\t}else{\r\n\t\t\t\t\twords_attr[i].x += words_attr[i].speed;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsetInterval(function() {\r\n\t\t\tc.clearRect(0,0,w,h);\r\n\t\t\tanimation();\r\n\t\t},24);\r\n\r\n\t}\r\n\r\n\tfunction string_handle(str) {\r\n\t\tvar split_str = str.split(\" \");\r\n\t\tvar word_array = [];\r\n\t\tvar word_count = [];\r\n\t\tfor (var i = 0; i &lt; split_str.length; i++) {\r\n\t\t\tcheck = true;\r\n\t\t\tfor (var j = 0; j &lt;= word_array.length; j++) {\r\n\t\t\t\tif (split_str[i] == word_array[j]) {\r\n\t\t\t\t\tword_count[j]++;\r\n\t\t\t\t\tcheck = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (check) {\r\n\t\t\t\tword_array.push(split_str[i]);\r\n\t\t\t\tword_count.push(1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (var i = 0; i &lt; word_array.length; i++) {\r\n\t\t\twords[word_array[i]] = word_count[i];\r\n\t\t}\r\n\t\treturn words;\r\n\t}\r\n\r\n}<\/pre>\n<p>Replace the placeholder lyric with your text in the <code>var lyric<\/code> section of the JavaScript code. This will be the source of words for your animation.<\/p>\n<p>Feel free to tweak parameters such as color, font size, or animation speed in the JavaScript code to match your desired visual style.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created a floating words animation on your website. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This Vanilla JavaScript code snippet helps you to create floating words animation. It works by animating words from a given&#8230;<\/p>\n","protected":false},"author":1,"featured_media":11205,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97],"tags":[],"class_list":["post-11146","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-text-input"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Floating Words Animation Using Vanilla JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Floating Words Animation Using Vanilla JavaScript. You can view demo and download the 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:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Floating Words Animation Using Vanilla JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Floating Words Animation Using Vanilla JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-28T16:35:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-03T08:18:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\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:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Floating Words Animation Using Vanilla JavaScript\",\"datePublished\":\"2024-01-28T16:35:29+00:00\",\"dateModified\":\"2024-02-03T08:18:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/\"},\"wordCount\":227,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png\",\"articleSection\":[\"Text &amp; Input\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/\",\"url\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/\",\"name\":\"Floating Words Animation Using Vanilla JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png\",\"datePublished\":\"2024-01-28T16:35:29+00:00\",\"dateModified\":\"2024-02-03T08:18:02+00:00\",\"description\":\"Here is a free code snippet to create a Floating Words Animation Using Vanilla JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Floating Words Animation Using Vanilla JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text &amp; Input\",\"item\":\"https:\/\/codehim.com\/category\/text-input\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Floating Words Animation Using Vanilla JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Floating Words Animation Using Vanilla JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Floating Words Animation Using Vanilla JavaScript. You can view demo and download the 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:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Floating Words Animation Using Vanilla JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Floating Words Animation Using Vanilla JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-28T16:35:29+00:00","article_modified_time":"2024-02-03T08:18:02+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Floating Words Animation Using Vanilla JavaScript","datePublished":"2024-01-28T16:35:29+00:00","dateModified":"2024-02-03T08:18:02+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/"},"wordCount":227,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png","articleSection":["Text &amp; Input"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/","url":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/","name":"Floating Words Animation Using Vanilla JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png","datePublished":"2024-01-28T16:35:29+00:00","dateModified":"2024-02-03T08:18:02+00:00","description":"Here is a free code snippet to create a Floating Words Animation Using Vanilla JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Floating-Words-Animation-Using-Vanilla-JavaScript.png","width":1280,"height":960,"caption":"Floating Words Animation Using Vanilla JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/floating-words-animation-using-vanilla-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Text &amp; Input","item":"https:\/\/codehim.com\/category\/text-input\/"},{"@type":"ListItem","position":3,"name":"Floating Words Animation Using Vanilla JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":1348,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/11146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=11146"}],"version-history":[{"count":2,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/11146\/revisions"}],"predecessor-version":[{"id":11243,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/11146\/revisions\/11243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/11205"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=11146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=11146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=11146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}