{"id":29535,"date":"2019-03-25T18:01:56","date_gmt":"2019-03-25T10:01:56","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=29535"},"modified":"2022-07-17T21:57:50","modified_gmt":"2022-07-17T13:57:50","slug":"izimodal-js","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/","title":{"rendered":"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin"},"content":{"rendered":"<p>Most modal windows seem to <strong>distract and annoy the visitor<\/strong> with <strong>opt-in fields<\/strong> and <strong>unwanted deals<\/strong>. These modals often take over the whole page, look terrible, and don\u2019t offer a clear way to close the window. Thankfully, <strong><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/izimodal.marcelodolza.com\/\">iziModal.js<\/a><\/strong> is the exact opposite.<\/p>\n<p>It\u2019s one of the sleekest modal window plugins I\u2019ve ever seen and it gets me excited to interact with modals again.<\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/izimodal.marcelodolza.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/01-izi-modal-window.jpg\" alt=\"izimodal.js\" width=\"950\" height=\"518\"><\/a><\/figure>\n<p>iziModal.js is a <strong>jQuery plugin<\/strong> so you do need <strong>a copy of the jQuery library<\/strong> for this to work. But it\u2019s <strong>pretty lightweight<\/strong> and you can even <strong>include the library externally<\/strong> <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/cdnjs.com\/libraries\/izimodal\">from CDNJS<\/a>.<\/p>\n<p>Note this plugin comes with <strong><em>a lot<\/em> of different options<\/strong>. You can pass in options to <strong>style the modal size, frame type, and animation<\/strong>. But you can also <strong>create callback functions<\/strong> if the user closes a modal or clicks on a specific element.<\/p>\n<p>You can find <strong>plenty of examples<\/strong> <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/codepen.io\/\/collection\/DgkRVx\/\">on CodePen<\/a> but I really like the <strong>demos hosted on <a href=\"https:\/\/izimodal.marcelodolza.com\/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">iziModal\u2019s home page<\/a><\/strong>. Specifically, check out the <strong>iframe embed option<\/strong> where it has <strong>an autoplay Vimeo player<\/strong> queued up in the modal.<\/p>\n<figure><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/izimodal.marcelodolza.com\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/02-izi-modal-iframe-view.jpg\" alt=\"izimodal js\" width=\"900\" height=\"510\"><\/a><\/figure>\n<p>The design is magnificent and the modal really feels like it\u2019s <strong>part of the interface<\/strong>. The quality of animation is impressive too, and it\u2019s all powered with <strong>CSS3 & jQuery<\/strong>.<\/p>\n<p>On the main plugin page, you\u2019ll also find <strong><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/izimodal.marcelodolza.com\/#documentation\">documentation tables<\/a> with code snippets<\/strong> for each of the available demos. Here\u2019s <strong>the shortest bit of code<\/strong> to use for a modal window popup.<\/p>\n<pre>\r\n$(document).on('click', '.trigger', function (event) {\r\n    event.preventDefault();\r\n    $('#modal').iziModal('open');\r\n});\r\n<\/pre>\n<p>The <code>iziModal()<\/code> function has <strong>over 45 different options<\/strong> that can be passed in to <strong>customize the modal window<\/strong>. It also has <strong>custom events<\/strong> that can <strong>trigger functions<\/strong> like when a modal opens, closes or goes full screen.<\/p>\n<p>This is an unbelievably massive project and it\u2019s easily one of my favorite modal window plugins from a <strong>design and usability standpoint<\/strong>.<\/p>\n<p>To grab a copy of the source, you can either <strong>pull it through npm<\/strong> or <strong><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/github.com\/marcelodolza\/iziModal\">download from GitHub<\/a><\/strong>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Most modal windows seem to distract and annoy the visitor with opt-in fields and unwanted deals. These modals often take over the whole page, look terrible, and don\u2019t offer a clear way to close the window. Thankfully, iziModal.js is the exact opposite. It\u2019s one of the sleekest modal window plugins I\u2019ve ever seen and it&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[352],"tags":[3497,911],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin - Hongkiat<\/title>\n<meta name=\"description\" content=\"Most modal windows seem to distract and annoy the visitor with opt-in fields and unwanted deals. These modals often take over the whole page, look\" \/>\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.hongkiat.com\/blog\/izimodal-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin\" \/>\n<meta property=\"og:description\" content=\"Most modal windows seem to distract and annoy the visitor with opt-in fields and unwanted deals. These modals often take over the whole page, look\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T10:01:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-17T13:57:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/01-izi-modal-window.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\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.hongkiat.com\\\/blog\\\/izimodal-js\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin\",\"datePublished\":\"2019-03-25T10:01:56+00:00\",\"dateModified\":\"2022-07-17T13:57:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/\"},\"wordCount\":326,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/izimodal-js\\\/01-izi-modal-window.jpg\",\"keywords\":[\"Javascript Library\",\"jQuery\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/\",\"name\":\"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/izimodal-js\\\/01-izi-modal-window.jpg\",\"datePublished\":\"2019-03-25T10:01:56+00:00\",\"dateModified\":\"2022-07-17T13:57:50+00:00\",\"description\":\"Most modal windows seem to distract and annoy the visitor with opt-in fields and unwanted deals. These modals often take over the whole page, look\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/izimodal-js\\\/01-izi-modal-window.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/izimodal-js\\\/01-izi-modal-window.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/izimodal-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin - Hongkiat","description":"Most modal windows seem to distract and annoy the visitor with opt-in fields and unwanted deals. These modals often take over the whole page, look","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.hongkiat.com\/blog\/izimodal-js\/","og_locale":"en_US","og_type":"article","og_title":"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin","og_description":"Most modal windows seem to distract and annoy the visitor with opt-in fields and unwanted deals. These modals often take over the whole page, look","og_url":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2019-03-25T10:01:56+00:00","article_modified_time":"2022-07-17T13:57:50+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/01-izi-modal-window.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin","datePublished":"2019-03-25T10:01:56+00:00","dateModified":"2022-07-17T13:57:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/"},"wordCount":326,"commentCount":1,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/01-izi-modal-window.jpg","keywords":["Javascript Library","jQuery"],"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/","url":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/","name":"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/01-izi-modal-window.jpg","datePublished":"2019-03-25T10:01:56+00:00","dateModified":"2022-07-17T13:57:50+00:00","description":"Most modal windows seem to distract and annoy the visitor with opt-in fields and unwanted deals. These modals often take over the whole page, look","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/izimodal-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/01-izi-modal-window.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/izimodal-js\/01-izi-modal-window.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/izimodal-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"iziModal.js &ndash; A Truly Dynamic Modal Window jQuery Plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7Gn","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=29535"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29535\/revisions"}],"predecessor-version":[{"id":50150,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29535\/revisions\/50150"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=29535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=29535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=29535"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=29535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}