HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="slider" style="display: none">
<div class="slider-items-container">
<div class="slider-item active">
<div class="mt-vip-top-section-container">
<h3 class="mt-vip-top-section-container__message">Your invite to skip the sale queue, exclusively with <span>nextpay</span></h3>
<svg class="mt-vip-top-section-container__svg" fill="none" height="13" role="img" title="nextpay credit" viewbox="0 0 71 13" width="71" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M35.1188 10.6533C33.8448 10.6533 32.8689 10.3504 32.2188 9.75257C31.5459 9.13467 31.2461 8.26326 31.2461 6.92723V0.5H31.9465V1.38959H37.0853V1.95857H31.9465V6.92723C31.9465 8.12643 32.1942 8.83365 32.8018 9.36826C33.3259 9.83619 34.1275 10.084 35.1188 10.084C35.7555 10.084 36.6668 9.97658 37.4898 9.48279L37.8786 9.92436C37.1099 10.402 36.1605 10.6533 35.1188 10.6533ZM15.1322 10.6546C13.7658 10.6546 12.589 10.2179 11.7289 9.39188C10.8599 8.55695 10.4004 7.405 10.4004 6.06036C10.4004 3.28737 12.3019 1.42431 15.1322 1.42431C17.9251 1.42431 19.8754 3.32612 19.8754 6.04948V6.27473H11.1066L11.1224 6.47074C11.2981 8.67513 12.872 10.0995 15.1322 10.0995C16.9194 10.0995 18.1429 9.43248 18.8678 8.06077H19.5814C18.8357 9.69036 17.193 10.6546 15.1322 10.6546ZM15.132 1.979C12.9068 1.979 11.3745 3.33549 11.1333 5.51917L11.1113 5.71993H19.159L19.1422 5.52328C18.9624 3.4034 17.3508 1.979 15.132 1.979ZM28.4212 1.70451H29.2102L25.4338 5.90654L29.3179 10.1969H28.4928L25.0332 6.35262L21.5766 10.1969H20.7783V10.1664L24.6326 5.89919L20.8717 1.72186H21.6582L25.0332 5.45559L28.4212 1.70451ZM9.00162 5.58534V5.09031C9.00162 5.0687 9.00162 5.04569 9.00137 5.02176C9.00121 4.79404 8.99156 4.58072 8.97236 4.38057L8.97021 4.36096C8.96936 4.35376 8.96852 4.34657 8.96787 4.33936C8.96222 4.2853 8.95598 4.23185 8.94908 4.17957L8.94542 4.15355C8.83577 3.37193 8.55985 2.8044 8.08706 2.37111C7.9252 2.22278 7.7413 2.09459 7.53704 1.98514C7.01862 1.69731 6.31713 1.51304 5.36665 1.51304C2.44564 1.51304 1.55577 3.30222 1.55577 3.30222C1.56351 2.81633 1.57423 1.93363 1.57423 1.93363H0.925781V10.1961H1.57423V5.40463L1.57772 5.12261C1.57772 5.12261 1.48561 3.4947 3.08453 2.57869C3.09145 2.57479 3.09817 2.57078 3.10488 2.56677L3.10489 2.56676L3.1049 2.56676L3.10491 2.56675C3.1131 2.56185 3.1213 2.55696 3.12984 2.55228C3.12984 2.55228 3.19044 2.52106 3.21979 2.50464C3.75476 2.23006 4.46365 2.04935 5.4024 2.04594L5.41379 2.0468C6.31522 2.06205 7.04505 2.29326 7.5279 2.71703C8.10685 3.21825 8.34295 3.88113 8.34295 5.00518V10.1961H9.00162V5.58534ZM42.3051 2.36053C43.0816 1.7975 44.0727 1.47876 45.1166 1.47876C47.8664 1.47876 49.7139 3.27406 49.7139 5.9464C49.7139 8.57684 47.8235 10.4138 45.1166 10.4138C44.0145 10.4138 43.0496 10.134 42.3051 9.61042V12.5H40.832V1.69355H42.3051V2.36053ZM42.3047 7.26802C42.5928 8.15762 43.475 9.08772 45.1162 9.08772C45.9359 9.08772 46.6978 8.79617 47.2618 8.26737C47.8768 7.69055 48.198 6.88895 48.1913 5.94932C48.1983 4.98134 47.882 4.17284 47.2767 3.60493C46.7274 3.08938 45.9599 2.80542 45.1162 2.80542C43.2797 2.80542 42.4838 3.96518 42.3047 4.61536V7.26802ZM58.3331 2.29298C57.5855 1.76232 56.6207 1.47852 55.5213 1.47852C52.8144 1.47852 50.9238 3.31564 50.9238 5.94615C50.9238 8.61826 52.7714 10.4136 55.5213 10.4136C56.554 10.4136 57.5468 10.094 58.3331 9.52962V10.1989H59.8059V1.6933H58.3331V2.29298ZM55.5223 9.08747C54.6787 9.08747 53.9113 8.80352 53.3616 8.28789C52.7563 7.72005 52.4403 6.9114 52.4474 5.94342C52.4403 5.00379 52.7619 4.20242 53.3766 3.6256C53.9405 3.09657 54.7025 2.80518 55.5223 2.80518C57.1633 2.80518 58.0458 3.73528 58.334 4.62487V7.27731C58.1544 7.92779 57.3588 9.08747 55.5223 9.08747ZM65.6155 8.13481L68.3898 1.69287H70.0731L66.3906 9.94102L65.292 12.4994H63.6592L64.8162 9.89207L61.1729 1.69287H62.8555L65.6155 8.13481Z" fill="#0A1C2B" fill-rule="evenodd"></path>
</svg>
</div>
<div class="mt-vip-cb slide-one">
<div class="mt-vip-cb__left-container"><svg fill="none" height="28" role="img" title="nextpay credit account exclusive" viewbox="0 0 157 28" width="157" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M39.5598 14.247C38.0859 14.247 36.9568 13.8965 36.2046 13.2049C35.4261 12.49 35.0793 11.4818 35.0793 9.93605V2.5H35.8896V3.52922H41.835V4.18751H35.8896V9.93605C35.8896 11.3235 36.1762 12.1417 36.8792 12.7602C37.4855 13.3016 38.413 13.5883 39.5598 13.5883C40.2965 13.5883 41.3509 13.464 42.303 12.8927L42.7529 13.4036C41.8634 13.9563 40.7651 14.247 39.5598 14.247ZM16.4368 14.248C14.856 14.248 13.4945 13.7428 12.4994 12.7871C11.494 11.8211 10.9623 10.4884 10.9623 8.93267C10.9623 5.72443 13.1622 3.56895 16.4368 3.56895C19.6681 3.56895 21.9246 5.76926 21.9246 8.92009V9.18069H11.7794L11.7976 9.40746C12.0009 11.9579 13.8219 13.6058 16.4368 13.6058C18.5046 13.6058 19.9201 12.8341 20.7588 11.2471H21.5844C20.7217 13.1324 18.8211 14.248 16.4368 14.248ZM16.4371 4.21103C13.8626 4.21103 12.0897 5.78043 11.8107 8.30687L11.7853 8.53914H21.0961L21.0767 8.31163C20.8687 5.85901 19.0041 4.21103 16.4371 4.21103ZM31.8114 3.89345H32.7243L28.3551 8.75504L32.8489 13.7188H31.8943L27.8916 9.27113L23.8925 13.7188H22.9689V13.6836L27.4281 8.74653L23.077 3.91352H23.9869L27.8916 8.2333L31.8114 3.89345ZM9.34343 8.38346V7.81073C9.34343 7.78573 9.34343 7.75911 9.34314 7.73142C9.34295 7.46795 9.33179 7.22115 9.30957 6.98959C9.30884 6.98198 9.30796 6.97442 9.30708 6.96689L9.30708 6.96686L9.30708 6.96683C9.3061 6.95852 9.30514 6.95023 9.30438 6.94191C9.29784 6.87936 9.29063 6.81753 9.28264 6.75704L9.27841 6.72693C9.15154 5.82263 8.83231 5.16602 8.28532 4.66472C8.09805 4.49311 7.88529 4.34479 7.64897 4.21817C7.04917 3.88516 6.23758 3.67197 5.13792 3.67197C1.75842 3.67197 0.728876 5.74198 0.728876 5.74198C0.737822 5.17982 0.750229 4.15857 0.750229 4.15857H0L0 13.7179H0.750229V8.17438L0.754269 7.8481C0.754269 7.8481 0.647698 5.96467 2.49759 4.90489C2.50559 4.90037 2.51335 4.89573 2.52111 4.8911L2.52113 4.89109C2.53063 4.88542 2.54011 4.87975 2.55001 4.87433C2.55001 4.87433 2.62013 4.83821 2.65408 4.81921C3.27302 4.50153 4.09317 4.29246 5.17927 4.28852L5.19245 4.2895C6.23537 4.30716 7.07976 4.57466 7.63839 5.06494C8.30821 5.64483 8.58137 6.41176 8.58137 7.71224V13.7179H9.34343V8.38346ZM47.875 4.65312C48.7734 4.00171 49.92 3.63295 51.1278 3.63295C54.3092 3.63295 56.4468 5.71004 56.4468 8.80183C56.4468 11.8451 54.2595 13.9704 51.1278 13.9704C49.8527 13.9704 48.7364 13.6468 47.875 13.041V16.384H46.1707V3.88145H47.875V4.65312ZM47.8745 10.3308C48.2078 11.36 49.2284 12.4361 51.1273 12.4361C52.0757 12.4361 52.9572 12.0988 53.6097 11.487C54.3212 10.8197 54.6928 9.89225 54.685 8.80513C54.6932 7.68522 54.3272 6.74982 53.6269 6.09277C52.9913 5.49629 52.1035 5.16777 51.1273 5.16777C49.0025 5.16777 48.0817 6.50957 47.8745 7.26179V10.3308ZM66.4183 4.57525C65.5533 3.9613 64.4371 3.63295 63.1652 3.63295C60.0334 3.63295 57.8461 5.75843 57.8461 8.80183C57.8461 11.8934 59.9836 13.9704 63.1652 13.9704C64.36 13.9704 65.5086 13.6008 66.4183 12.9478V13.7221H68.1223V3.88145H66.4183V4.57525ZM63.1653 12.4361C62.1893 12.4361 61.3015 12.1076 60.6655 11.511C59.9652 10.8541 59.5996 9.91851 59.6078 8.79859C59.5996 7.71148 59.9716 6.78432 60.6828 6.11696C61.3352 5.5049 62.2169 5.16777 63.1653 5.16777C65.064 5.16777 66.085 6.24386 66.4184 7.27308V10.3418C66.2106 11.0944 65.2901 12.4361 63.1653 12.4361ZM74.8426 11.333L78.0525 3.87997H79.9999L75.7394 13.4228L74.4684 16.3827H72.5794L73.9179 13.3661L69.7027 3.87997H71.6495L74.8426 11.333Z" fill="black" fill-rule="evenodd"></path>
<path d="M0 22.4841C0 21.6287 0.293413 20.9086 0.880238 20.3239C1.46706 19.7337 2.22714 19.4386 3.16047 19.4386C3.79201 19.4386 4.36207 19.5767 4.87065 19.8528V20.6974C4.36766 20.3347 3.7948 20.1533 3.15209 20.1533C2.46467 20.1533 1.9002 20.3753 1.45868 20.8193C1.01716 21.2578 0.796406 21.8074 0.796406 22.4679C0.796406 23.1284 1.01996 23.6807 1.46706 24.1246C1.91976 24.5632 2.50379 24.7825 3.21916 24.7825C3.87864 24.7825 4.45987 24.5849 4.96287 24.1896V25.0424C4.47105 25.3455 3.87584 25.4971 3.17724 25.4971C2.26067 25.4971 1.5006 25.2129 0.897004 24.6444C0.299002 24.0705 0 23.3504 0 22.4841Z" fill="black"></path>
<path d="M6.02472 25.4078V21.4121H6.77921V21.9969L6.79597 22.005C7.10336 21.5881 7.51134 21.3796 8.01992 21.3796C8.11493 21.3796 8.20435 21.3905 8.28819 21.4121V22.1349C8.19876 22.1133 8.10096 22.1024 7.99477 22.1024C7.46943 22.1024 7.06424 22.338 6.77921 22.809V25.4078H6.02472Z" fill="black"></path>
<path d="M12.6262 23.6211H9.47415C9.53004 24.0055 9.69491 24.306 9.96876 24.5226C10.2426 24.7337 10.5863 24.8393 10.9999 24.8393C11.4973 24.8393 11.9723 24.6742 12.425 24.3439V25.1236C12.0226 25.3726 11.5308 25.4971 10.9496 25.4971C10.3013 25.4971 9.76756 25.3049 9.3484 24.9205C8.92924 24.5361 8.71966 24.0326 8.71966 23.41C8.71966 22.7982 8.91806 22.2973 9.31487 21.9075C9.71726 21.5177 10.2035 21.3228 10.7735 21.3228C11.3045 21.3228 11.7488 21.496 12.1065 21.8426C12.4698 22.1836 12.6514 22.6547 12.6514 23.2557C12.6514 23.4018 12.643 23.5237 12.6262 23.6211ZM10.7568 21.9806C10.4606 21.9806 10.1895 22.0727 9.94361 22.2567C9.70329 22.4354 9.55239 22.698 9.49092 23.0445H11.922C11.8941 22.6818 11.7656 22.4138 11.5364 22.2405C11.3073 22.0672 11.0474 21.9806 10.7568 21.9806Z" fill="black"></path>
<path d="M13.4602 23.4749C13.4602 22.8577 13.6642 22.3461 14.0721 21.94C14.4801 21.5285 15.0055 21.3228 15.6482 21.3228C15.9779 21.3228 16.3077 21.3932 16.6374 21.5339L16.6542 21.5258V19.2031H17.4087V25.4078H16.6542V25.1642L16.6374 25.1561C16.3021 25.3834 15.9165 25.4971 15.4805 25.4971C14.9105 25.4971 14.4298 25.3104 14.0386 24.9368C13.653 24.5632 13.4602 24.0759 13.4602 23.4749ZM14.223 23.4343C14.223 23.8404 14.346 24.1788 14.5919 24.4495C14.8378 24.7148 15.1676 24.8474 15.5811 24.8474C15.9556 24.8474 16.3133 24.7337 16.6542 24.5063V22.2243C16.3188 22.0564 15.9807 21.9725 15.6398 21.9725C15.2151 21.9725 14.8713 22.1106 14.6087 22.3867C14.3516 22.6628 14.223 23.012 14.223 23.4343Z" fill="black"></path>
<path d="M18.7305 20.4051C18.6299 20.3022 18.5796 20.1804 18.5796 20.0396C18.5796 19.8989 18.6299 19.7797 18.7305 19.6823C18.8367 19.5794 18.9625 19.528 19.1078 19.528C19.2531 19.528 19.376 19.5794 19.4766 19.6823C19.5828 19.7797 19.6359 19.8989 19.6359 20.0396C19.6359 20.1804 19.5828 20.3022 19.4766 20.4051C19.376 20.5025 19.2531 20.5513 19.1078 20.5513C18.9625 20.5513 18.8367 20.5025 18.7305 20.4051ZM18.7305 25.4078V21.4121H19.485V25.4078H18.7305Z" fill="black"></path>
<path d="M21.4387 25.1236C21.2319 24.8962 21.1285 24.528 21.1285 24.0191V22.07H20.3657V21.4121H21.1285V20.3239L21.883 20.202V21.4121H23.1237V22.07H21.883V23.881C21.883 24.1788 21.9249 24.4116 22.0088 24.5794C22.0926 24.7473 22.2575 24.8312 22.5034 24.8312C22.7325 24.8312 22.9393 24.7743 23.1237 24.6607V25.351C22.9225 25.4484 22.6738 25.4971 22.3776 25.4971C21.9752 25.4971 21.6623 25.3726 21.4387 25.1236Z" fill="black"></path>
<path d="M27.2387 25.4971C26.8419 25.4971 26.515 25.4024 26.2579 25.2129C25.9673 25.0017 25.8219 24.7067 25.8219 24.3277C25.8219 23.9054 26.0036 23.5805 26.3669 23.3531C26.6519 23.1745 27.0375 23.0851 27.5237 23.0851C27.82 23.0851 28.1134 23.1203 28.404 23.1907V22.8577C28.404 22.5654 28.3257 22.3461 28.1693 22.1999C28.0016 22.0537 27.7473 21.9806 27.4064 21.9806C26.9369 21.9806 26.515 22.1133 26.1405 22.3786V21.6639C26.5261 21.4365 26.9844 21.3228 27.5154 21.3228C28.0631 21.3228 28.4738 21.4446 28.7477 21.6882C29.0215 21.9265 29.1585 22.2757 29.1585 22.7359V24.4333C29.1585 24.7148 29.2647 24.8556 29.477 24.8556C29.5609 24.8556 29.6419 24.8366 29.7201 24.7987V25.4078C29.5972 25.4565 29.4631 25.4809 29.3178 25.4809C28.9433 25.4809 28.6778 25.3401 28.5213 25.0586H28.5046C28.3705 25.1777 28.1888 25.2806 27.9597 25.3672C27.7361 25.4538 27.4958 25.4971 27.2387 25.4971ZM27.3728 24.8474C27.7585 24.8474 28.1022 24.731 28.404 24.4982V23.7511C28.1581 23.6807 27.8898 23.6455 27.5992 23.6455C27.3086 23.6455 27.0655 23.6942 26.8699 23.7917C26.6798 23.8891 26.5848 24.0461 26.5848 24.2627C26.5848 24.4522 26.6575 24.5984 26.8028 24.7013C26.9481 24.7987 27.1381 24.8474 27.3728 24.8474Z" fill="black"></path>
<path d="M33.746 24.4414V25.221C33.3995 25.4051 32.9887 25.4971 32.5137 25.4971C31.8598 25.4971 31.3232 25.3022 30.9041 24.9124C30.4849 24.5226 30.2753 24.0299 30.2753 23.4343C30.2753 22.8225 30.4933 22.319 30.9292 21.9238C31.3707 21.5231 31.9157 21.3228 32.564 21.3228C32.9719 21.3228 33.3436 21.4067 33.6789 21.5746V22.3298C33.3101 22.1024 32.9272 21.9887 32.5304 21.9887C32.0889 21.9887 31.7284 22.1268 31.449 22.4029C31.1751 22.679 31.0382 23.0229 31.0382 23.4343C31.0382 23.8458 31.1779 24.1815 31.4574 24.4414C31.7424 24.7013 32.1085 24.8312 32.5556 24.8312C33.0083 24.8312 33.4051 24.7013 33.746 24.4414Z" fill="black"></path>
<path d="M38.0031 24.4414V25.221C37.6566 25.4051 37.2458 25.4971 36.7708 25.4971C36.1169 25.4971 35.5803 25.3022 35.1612 24.9124C34.742 24.5226 34.5324 24.0299 34.5324 23.4343C34.5324 22.8225 34.7504 22.319 35.1863 21.9238C35.6278 21.5231 36.1728 21.3228 36.8211 21.3228C37.229 21.3228 37.6007 21.4067 37.936 21.5746V22.3298C37.5672 22.1024 37.1843 21.9887 36.7875 21.9887C36.346 21.9887 35.9855 22.1268 35.7061 22.4029C35.4322 22.679 35.2953 23.0229 35.2953 23.4343C35.2953 23.8458 35.435 24.1815 35.7145 24.4414C35.9995 24.7013 36.3656 24.8312 36.8127 24.8312C37.2654 24.8312 37.6622 24.7013 38.0031 24.4414Z" fill="black"></path>
<path d="M39.4099 24.8962C38.9963 24.4955 38.7895 24.0001 38.7895 23.41C38.7895 22.8198 38.9963 22.3244 39.4099 21.9238C39.8291 21.5231 40.3488 21.3228 40.9692 21.3228C41.5895 21.3228 42.1065 21.5231 42.5201 21.9238C42.9392 22.3244 43.1488 22.8198 43.1488 23.41C43.1488 24.0001 42.9392 24.4955 42.5201 24.8962C42.1065 25.2968 41.5895 25.4971 40.9692 25.4971C40.3488 25.4971 39.8291 25.2968 39.4099 24.8962ZM39.9464 22.3948C39.6782 22.6655 39.544 23.0039 39.544 23.41C39.544 23.816 39.6782 24.1544 39.9464 24.4251C40.2203 24.6958 40.5612 24.8312 40.9692 24.8312C41.3772 24.8312 41.7153 24.6958 41.9836 24.4251C42.2574 24.1544 42.3943 23.816 42.3943 23.41C42.3943 23.0039 42.2574 22.6655 41.9836 22.3948C41.7153 22.1241 41.3772 21.9887 40.9692 21.9887C40.5612 21.9887 40.2203 22.1241 39.9464 22.3948Z" fill="black"></path>
<path d="M44.5098 25.0505C44.2863 24.796 44.1745 24.3981 44.1745 23.8566V21.4121H44.929V23.7186C44.929 24.1192 44.9961 24.3954 45.1302 24.547C45.2811 24.731 45.4991 24.8231 45.7841 24.8231C46.0244 24.8231 46.2591 24.7581 46.4883 24.6282C46.7174 24.4982 46.913 24.3358 47.0751 24.1409V21.4121H47.8296V25.4078H47.0751V24.9043L47.0583 24.8962C46.6448 25.2968 46.1697 25.4971 45.6332 25.4971C45.1526 25.4971 44.7781 25.3483 44.5098 25.0505Z" fill="black"></path>
<path d="M49.1524 25.4078V21.4121H49.9069V21.9156L49.9237 21.9238C50.3373 21.5231 50.8179 21.3228 51.3656 21.3228C51.8295 21.3228 52.1956 21.469 52.4638 21.7613C52.693 22.0158 52.8075 22.4083 52.8075 22.9389V25.4078H52.053V23.077C52.053 22.6818 51.9888 22.411 51.8602 22.2649C51.7093 22.0916 51.4886 22.005 51.198 22.005C50.9632 22.005 50.7257 22.0672 50.4854 22.1918C50.2506 22.3163 50.0578 22.476 49.9069 22.6709V25.4078H49.1524Z" fill="black"></path>
<path d="M54.7423 25.1236C54.5356 24.8962 54.4322 24.528 54.4322 24.0191V22.07H53.6693V21.4121H54.4322V20.3239L55.1867 20.202V21.4121H56.4274V22.07H55.1867V23.881C55.1867 24.1788 55.2286 24.4116 55.3124 24.5794C55.3962 24.7473 55.5611 24.8312 55.807 24.8312C56.0362 24.8312 56.2429 24.7743 56.4274 24.6607V25.351C56.2262 25.4484 55.9775 25.4971 55.6813 25.4971C55.2789 25.4971 54.9659 25.3726 54.7423 25.1236Z" fill="black"></path>
<line stroke="black" stroke-width="0.5" x1="87.75" x2="87.75" y1="28" y2="1.09279e-08"></line>
<path d="M98.09 11.65V13.4H100.44V14.51H98.09V16.36H100.74V17.5H96.69V10.51H100.74V11.65H98.09ZM107.192 17.5L105.682 15.15L104.312 17.5H102.732L104.932 13.98L102.702 10.52H104.312L105.822 12.86L107.182 10.52H108.762L106.572 14.03L108.802 17.5H107.192ZM110.528 14C110.528 13.3133 110.681 12.7 110.988 12.16C111.301 11.6133 111.724 11.19 112.258 10.89C112.798 10.5833 113.401 10.43 114.068 10.43C114.848 10.43 115.531 10.63 116.118 11.03C116.704 11.43 117.114 11.9833 117.348 12.69H115.738C115.578 12.3567 115.351 12.1067 115.058 11.94C114.771 11.7733 114.438 11.69 114.058 11.69C113.651 11.69 113.288 11.7867 112.968 11.98C112.654 12.1667 112.408 12.4333 112.228 12.78C112.054 13.1267 111.968 13.5333 111.968 14C111.968 14.46 112.054 14.8667 112.228 15.22C112.408 15.5667 112.654 15.8367 112.968 16.03C113.288 16.2167 113.651 16.31 114.058 16.31C114.438 16.31 114.771 16.2267 115.058 16.06C115.351 15.8867 115.578 15.6333 115.738 15.3H117.348C117.114 16.0133 116.704 16.57 116.118 16.97C115.538 17.3633 114.854 17.56 114.068 17.56C113.401 17.56 112.798 17.41 112.258 17.11C111.724 16.8033 111.301 16.38 110.988 15.84C110.681 15.3 110.528 14.6867 110.528 14ZM120.944 16.39H123.244V17.5H119.544V10.52H120.944V16.39ZM126.513 10.52V14.84C126.513 15.3133 126.637 15.6767 126.883 15.93C127.13 16.1767 127.477 16.3 127.923 16.3C128.377 16.3 128.727 16.1767 128.973 15.93C129.22 15.6767 129.343 15.3133 129.343 14.84V10.52H130.753V14.83C130.753 15.4233 130.623 15.9267 130.363 16.34C130.11 16.7467 129.767 17.0533 129.333 17.26C128.907 17.4667 128.43 17.57 127.903 17.57C127.383 17.57 126.91 17.4667 126.483 17.26C126.063 17.0533 125.73 16.7467 125.483 16.34C125.237 15.9267 125.113 15.4233 125.113 14.83V10.52H126.513ZM135.516 17.57C135.029 17.57 134.589 17.4867 134.196 17.32C133.809 17.1533 133.503 16.9133 133.276 16.6C133.049 16.2867 132.933 15.9167 132.926 15.49H134.426C134.446 15.7767 134.546 16.0033 134.726 16.17C134.913 16.3367 135.166 16.42 135.486 16.42C135.813 16.42 136.069 16.3433 136.256 16.19C136.443 16.03 136.536 15.8233 136.536 15.57C136.536 15.3633 136.473 15.1933 136.346 15.06C136.219 14.9267 136.059 14.8233 135.866 14.75C135.679 14.67 135.419 14.5833 135.086 14.49C134.633 14.3567 134.263 14.2267 133.976 14.1C133.696 13.9667 133.453 13.77 133.246 13.51C133.046 13.2433 132.946 12.89 132.946 12.45C132.946 12.0367 133.049 11.6767 133.256 11.37C133.463 11.0633 133.753 10.83 134.126 10.67C134.499 10.5033 134.926 10.42 135.406 10.42C136.126 10.42 136.709 10.5967 137.156 10.95C137.609 11.2967 137.859 11.7833 137.906 12.41H136.366C136.353 12.17 136.249 11.9733 136.056 11.82C135.869 11.66 135.619 11.58 135.306 11.58C135.033 11.58 134.813 11.65 134.646 11.79C134.486 11.93 134.406 12.1333 134.406 12.4C134.406 12.5867 134.466 12.7433 134.586 12.87C134.713 12.99 134.866 13.09 135.046 13.17C135.233 13.2433 135.493 13.33 135.826 13.43C136.279 13.5633 136.649 13.6967 136.936 13.83C137.223 13.9633 137.469 14.1633 137.676 14.43C137.883 14.6967 137.986 15.0467 137.986 15.48C137.986 15.8533 137.889 16.2 137.696 16.52C137.503 16.84 137.219 17.0967 136.846 17.29C136.473 17.4767 136.029 17.57 135.516 17.57ZM141.6 10.52V17.5H140.2V10.52H141.6ZM150.253 10.52L147.693 17.5H145.993L143.433 10.52H144.933L146.853 16.07L148.763 10.52H150.253ZM153.492 11.65V13.4H155.842V14.51H153.492V16.36H156.142V17.5H152.092V10.51H156.142V11.65H153.492Z" fill="black"></path>
</svg>
<p class="mt-vip-cb-left-container_message">24.9% Representative APR Variable</p>
<a class="mt-vip-cb-left-container_compare-link" href="/credit">Compare our credit options</a>
</div>
<div class="mt-vip-cb__center-container">
<div class="mt-vip-cb-center-container-bullet-messaging">
<div class="mt-vip-cb-center-container-bullet-messaging__messagin-container"><svg class="mt-vip-cb-center-svg" fill="none" height="20" role="img" title="Orange circle with white tick inside" viewbox="0 0 21 20" width="21" xmlns="http://www.w3.org/2000/svg">
<circle cx="10.5005" cy="10.0005" fill="#D59001" r="8.32864"></circle>
<path d="M6.75 10L9.25 12.5L14.25 7.5" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"></path>
</svg>
<h4 class="mt-vip-cb-center-message"><span>Up to 50% off</span> Next sale items</h4>
</div>
<div class="mt-vip-cb-center-container-bullet-messaging__messagin-container"><svg class="mt-vip-cb-center-svg" fill="none" height="20" role="img" title="Orange circle with white tick inside" viewbox="0 0 21 20" width="21" xmlns="http://www.w3.org/2000/svg">
<circle cx="10.5005" cy="10.0005" fill="#D59001" r="8.32864"></circle>
<path d="M6.75 10L9.25 12.5L14.25 7.5" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"></path>
</svg>
<h4 class="mt-vip-cb-center-message">1000's of <span>branded items</span> reduced</h4>
</div>
<div class="mt-vip-cb-center-container-bullet-messaging__messagin-container highlight-bullet"><svg class="mt-vip-cb-center-svg" fill="none" height="20" role="img" title="Orange circle with white tick inside" viewbox="0 0 21 20" width="21" xmlns="http://www.w3.org/2000/svg">
<circle cx="10.5005" cy="10.0005" fill="#D59001" r="8.32864"></circle>
<path d="M6.75 10L9.25 12.5L14.25 7.5" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"></path>
</svg>
<h4 class="mt-vip-cb-center-message"><span>PLUS 10% off</span> your first order<span class="mt-vip-cb-center-message-dagger">‡</span></h4>
</div>
</div>
<p class="mt-vip-cb-center-credit-message">Credit subject to status. <span class="mt-vip-cb-center-credit-message-dagger">‡</span>10% off your first credit purchase of £20+</p>
</div>
<div class="mt-vip-cb__right-container"><a class="vip-cb-cta" href="/secure/account/MyAccount/CreditAccount/Nextpay">Check your eligibility</a>
<p class="mt-vip-cb-tcs-and-privacy"><a class="vip-cb-terms" href="/terms">T&Cs apply</a>. A soft credit search will be conducted. For further information please see our <a class="vip-cb-privacy" href="/privacy">Privacy & Cookie Policy</a>.</p>
</div>
</div>
<div class="slider-item__slider-border-styling"> </div>
</div>
<div class="slider-item">
<div class="mt-vip-top-section-container">
<h3 class="mt-vip-top-section-container__message">Your invite to skip the sale queue, exclusively with <span>nextpay</span></h3>
<svg class="mt-vip-top-section-container__svg" fill="none" height="13" role="img" title="nextpay" viewbox="0 0 71 13" width="71" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M35.1188 10.6533C33.8448 10.6533 32.8689 10.3504 32.2188 9.75257C31.5459 9.13467 31.2461 8.26326 31.2461 6.92723V0.5H31.9465V1.38959H37.0853V1.95857H31.9465V6.92723C31.9465 8.12643 32.1942 8.83365 32.8018 9.36826C33.3259 9.83619 34.1275 10.084 35.1188 10.084C35.7555 10.084 36.6668 9.97658 37.4898 9.48279L37.8786 9.92436C37.1099 10.402 36.1605 10.6533 35.1188 10.6533ZM15.1322 10.6546C13.7658 10.6546 12.589 10.2179 11.7289 9.39188C10.8599 8.55695 10.4004 7.405 10.4004 6.06036C10.4004 3.28737 12.3019 1.42431 15.1322 1.42431C17.9251 1.42431 19.8754 3.32612 19.8754 6.04948V6.27473H11.1066L11.1224 6.47074C11.2981 8.67513 12.872 10.0995 15.1322 10.0995C16.9194 10.0995 18.1429 9.43248 18.8678 8.06077H19.5814C18.8357 9.69036 17.193 10.6546 15.1322 10.6546ZM15.132 1.979C12.9068 1.979 11.3745 3.33549 11.1333 5.51917L11.1113 5.71993H19.159L19.1422 5.52328C18.9624 3.4034 17.3508 1.979 15.132 1.979ZM28.4212 1.70451H29.2102L25.4338 5.90654L29.3179 10.1969H28.4928L25.0332 6.35262L21.5766 10.1969H20.7783V10.1664L24.6326 5.89919L20.8717 1.72186H21.6582L25.0332 5.45559L28.4212 1.70451ZM9.00162 5.58534V5.09031C9.00162 5.0687 9.00162 5.04569 9.00137 5.02176C9.00121 4.79404 8.99156 4.58072 8.97236 4.38057L8.97021 4.36096C8.96936 4.35376 8.96852 4.34657 8.96787 4.33936C8.96222 4.2853 8.95598 4.23185 8.94908 4.17957L8.94542 4.15355C8.83577 3.37193 8.55985 2.8044 8.08706 2.37111C7.9252 2.22278 7.7413 2.09459 7.53704 1.98514C7.01862 1.69731 6.31713 1.51304 5.36665 1.51304C2.44564 1.51304 1.55577 3.30222 1.55577 3.30222C1.56351 2.81633 1.57423 1.93363 1.57423 1.93363H0.925781V10.1961H1.57423V5.40463L1.57772 5.12261C1.57772 5.12261 1.48561 3.4947 3.08453 2.57869C3.09145 2.57479 3.09817 2.57078 3.10488 2.56677L3.10489 2.56676L3.1049 2.56676L3.10491 2.56675C3.1131 2.56185 3.1213 2.55696 3.12984 2.55228C3.12984 2.55228 3.19044 2.52106 3.21979 2.50464C3.75476 2.23006 4.46365 2.04935 5.4024 2.04594L5.41379 2.0468C6.31522 2.06205 7.04505 2.29326 7.5279 2.71703C8.10685 3.21825 8.34295 3.88113 8.34295 5.00518V10.1961H9.00162V5.58534ZM42.3051 2.36053C43.0816 1.7975 44.0727 1.47876 45.1166 1.47876C47.8664 1.47876 49.7139 3.27406 49.7139 5.9464C49.7139 8.57684 47.8235 10.4138 45.1166 10.4138C44.0145 10.4138 43.0496 10.134 42.3051 9.61042V12.5H40.832V1.69355H42.3051V2.36053ZM42.3047 7.26802C42.5928 8.15762 43.475 9.08772 45.1162 9.08772C45.9359 9.08772 46.6978 8.79617 47.2618 8.26737C47.8768 7.69055 48.198 6.88895 48.1913 5.94932C48.1983 4.98134 47.882 4.17284 47.2767 3.60493C46.7274 3.08938 45.9599 2.80542 45.1162 2.80542C43.2797 2.80542 42.4838 3.96518 42.3047 4.61536V7.26802ZM58.3331 2.29298C57.5855 1.76232 56.6207 1.47852 55.5213 1.47852C52.8144 1.47852 50.9238 3.31564 50.9238 5.94615C50.9238 8.61826 52.7714 10.4136 55.5213 10.4136C56.554 10.4136 57.5468 10.094 58.3331 9.52962V10.1989H59.8059V1.6933H58.3331V2.29298ZM55.5223 9.08747C54.6787 9.08747 53.9113 8.80352 53.3616 8.28789C52.7563 7.72005 52.4403 6.9114 52.4474 5.94342C52.4403 5.00379 52.7619 4.20242 53.3766 3.6256C53.9405 3.09657 54.7025 2.80518 55.5223 2.80518C57.1633 2.80518 58.0458 3.73528 58.334 4.62487V7.27731C58.1544 7.92779 57.3588 9.08747 55.5223 9.08747ZM65.6155 8.13481L68.3898 1.69287H70.0731L66.3906 9.94102L65.292 12.4994H63.6592L64.8162 9.89207L61.1729 1.69287H62.8555L65.6155 8.13481Z" fill="#0A1C2B" fill-rule="evenodd"></path>
</svg>
</div>
<div class="mt-vip-cb slide-two">
<div class="mt-vip-cb__left-container"><svg fill="none" height="28" role="img" title="nextpay credit account exclusive" viewbox="0 0 157 28" width="157" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M39.5598 14.247C38.0859 14.247 36.9568 13.8965 36.2046 13.2049C35.4261 12.49 35.0793 11.4818 35.0793 9.93605V2.5H35.8896V3.52922H41.835V4.18751H35.8896V9.93605C35.8896 11.3235 36.1762 12.1417 36.8792 12.7602C37.4855 13.3016 38.413 13.5883 39.5598 13.5883C40.2965 13.5883 41.3509 13.464 42.303 12.8927L42.7529 13.4036C41.8634 13.9563 40.7651 14.247 39.5598 14.247ZM16.4368 14.248C14.856 14.248 13.4945 13.7428 12.4994 12.7871C11.494 11.8211 10.9623 10.4884 10.9623 8.93267C10.9623 5.72443 13.1622 3.56895 16.4368 3.56895C19.6681 3.56895 21.9246 5.76926 21.9246 8.92009V9.18069H11.7794L11.7976 9.40746C12.0009 11.9579 13.8219 13.6058 16.4368 13.6058C18.5046 13.6058 19.9201 12.8341 20.7588 11.2471H21.5844C20.7217 13.1324 18.8211 14.248 16.4368 14.248ZM16.4371 4.21103C13.8626 4.21103 12.0897 5.78043 11.8107 8.30687L11.7853 8.53914H21.0961L21.0767 8.31163C20.8687 5.85901 19.0041 4.21103 16.4371 4.21103ZM31.8114 3.89345H32.7243L28.3551 8.75504L32.8489 13.7188H31.8943L27.8916 9.27113L23.8925 13.7188H22.9689V13.6836L27.4281 8.74653L23.077 3.91352H23.9869L27.8916 8.2333L31.8114 3.89345ZM9.34343 8.38346V7.81073C9.34343 7.78573 9.34343 7.75911 9.34314 7.73142C9.34295 7.46795 9.33179 7.22115 9.30957 6.98959C9.30884 6.98198 9.30796 6.97442 9.30708 6.96689L9.30708 6.96686L9.30708 6.96683C9.3061 6.95852 9.30514 6.95023 9.30438 6.94191C9.29784 6.87936 9.29063 6.81753 9.28264 6.75704L9.27841 6.72693C9.15154 5.82263 8.83231 5.16602 8.28532 4.66472C8.09805 4.49311 7.88529 4.34479 7.64897 4.21817C7.04917 3.88516 6.23758 3.67197 5.13792 3.67197C1.75842 3.67197 0.728876 5.74198 0.728876 5.74198C0.737822 5.17982 0.750229 4.15857 0.750229 4.15857H0L0 13.7179H0.750229V8.17438L0.754269 7.8481C0.754269 7.8481 0.647698 5.96467 2.49759 4.90489C2.50559 4.90037 2.51335 4.89573 2.52111 4.8911L2.52113 4.89109C2.53063 4.88542 2.54011 4.87975 2.55001 4.87433C2.55001 4.87433 2.62013 4.83821 2.65408 4.81921C3.27302 4.50153 4.09317 4.29246 5.17927 4.28852L5.19245 4.2895C6.23537 4.30716 7.07976 4.57466 7.63839 5.06494C8.30821 5.64483 8.58137 6.41176 8.58137 7.71224V13.7179H9.34343V8.38346ZM47.875 4.65312C48.7734 4.00171 49.92 3.63295 51.1278 3.63295C54.3092 3.63295 56.4468 5.71004 56.4468 8.80183C56.4468 11.8451 54.2595 13.9704 51.1278 13.9704C49.8527 13.9704 48.7364 13.6468 47.875 13.041V16.384H46.1707V3.88145H47.875V4.65312ZM47.8745 10.3308C48.2078 11.36 49.2284 12.4361 51.1273 12.4361C52.0757 12.4361 52.9572 12.0988 53.6097 11.487C54.3212 10.8197 54.6928 9.89225 54.685 8.80513C54.6932 7.68522 54.3272 6.74982 53.6269 6.09277C52.9913 5.49629 52.1035 5.16777 51.1273 5.16777C49.0025 5.16777 48.0817 6.50957 47.8745 7.26179V10.3308ZM66.4183 4.57525C65.5533 3.9613 64.4371 3.63295 63.1652 3.63295C60.0334 3.63295 57.8461 5.75843 57.8461 8.80183C57.8461 11.8934 59.9836 13.9704 63.1652 13.9704C64.36 13.9704 65.5086 13.6008 66.4183 12.9478V13.7221H68.1223V3.88145H66.4183V4.57525ZM63.1653 12.4361C62.1893 12.4361 61.3015 12.1076 60.6655 11.511C59.9652 10.8541 59.5996 9.91851 59.6078 8.79859C59.5996 7.71148 59.9716 6.78432 60.6828 6.11696C61.3352 5.5049 62.2169 5.16777 63.1653 5.16777C65.064 5.16777 66.085 6.24386 66.4184 7.27308V10.3418C66.2106 11.0944 65.2901 12.4361 63.1653 12.4361ZM74.8426 11.333L78.0525 3.87997H79.9999L75.7394 13.4228L74.4684 16.3827H72.5794L73.9179 13.3661L69.7027 3.87997H71.6495L74.8426 11.333Z" fill="black" fill-rule="evenodd"></path>
<path d="M0 22.4841C0 21.6287 0.293413 20.9086 0.880238 20.3239C1.46706 19.7337 2.22714 19.4386 3.16047 19.4386C3.79201 19.4386 4.36207 19.5767 4.87065 19.8528V20.6974C4.36766 20.3347 3.7948 20.1533 3.15209 20.1533C2.46467 20.1533 1.9002 20.3753 1.45868 20.8193C1.01716 21.2578 0.796406 21.8074 0.796406 22.4679C0.796406 23.1284 1.01996 23.6807 1.46706 24.1246C1.91976 24.5632 2.50379 24.7825 3.21916 24.7825C3.87864 24.7825 4.45987 24.5849 4.96287 24.1896V25.0424C4.47105 25.3455 3.87584 25.4971 3.17724 25.4971C2.26067 25.4971 1.5006 25.2129 0.897004 24.6444C0.299002 24.0705 0 23.3504 0 22.4841Z" fill="black"></path>
<path d="M6.02472 25.4078V21.4121H6.77921V21.9969L6.79597 22.005C7.10336 21.5881 7.51134 21.3796 8.01992 21.3796C8.11493 21.3796 8.20435 21.3905 8.28819 21.4121V22.1349C8.19876 22.1133 8.10096 22.1024 7.99477 22.1024C7.46943 22.1024 7.06424 22.338 6.77921 22.809V25.4078H6.02472Z" fill="black"></path>
<path d="M12.6262 23.6211H9.47415C9.53004 24.0055 9.69491 24.306 9.96876 24.5226C10.2426 24.7337 10.5863 24.8393 10.9999 24.8393C11.4973 24.8393 11.9723 24.6742 12.425 24.3439V25.1236C12.0226 25.3726 11.5308 25.4971 10.9496 25.4971C10.3013 25.4971 9.76756 25.3049 9.3484 24.9205C8.92924 24.5361 8.71966 24.0326 8.71966 23.41C8.71966 22.7982 8.91806 22.2973 9.31487 21.9075C9.71726 21.5177 10.2035 21.3228 10.7735 21.3228C11.3045 21.3228 11.7488 21.496 12.1065 21.8426C12.4698 22.1836 12.6514 22.6547 12.6514 23.2557C12.6514 23.4018 12.643 23.5237 12.6262 23.6211ZM10.7568 21.9806C10.4606 21.9806 10.1895 22.0727 9.94361 22.2567C9.70329 22.4354 9.55239 22.698 9.49092 23.0445H11.922C11.8941 22.6818 11.7656 22.4138 11.5364 22.2405C11.3073 22.0672 11.0474 21.9806 10.7568 21.9806Z" fill="black"></path>
<path d="M13.4602 23.4749C13.4602 22.8577 13.6642 22.3461 14.0721 21.94C14.4801 21.5285 15.0055 21.3228 15.6482 21.3228C15.9779 21.3228 16.3077 21.3932 16.6374 21.5339L16.6542 21.5258V19.2031H17.4087V25.4078H16.6542V25.1642L16.6374 25.1561C16.3021 25.3834 15.9165 25.4971 15.4805 25.4971C14.9105 25.4971 14.4298 25.3104 14.0386 24.9368C13.653 24.5632 13.4602 24.0759 13.4602 23.4749ZM14.223 23.4343C14.223 23.8404 14.346 24.1788 14.5919 24.4495C14.8378 24.7148 15.1676 24.8474 15.5811 24.8474C15.9556 24.8474 16.3133 24.7337 16.6542 24.5063V22.2243C16.3188 22.0564 15.9807 21.9725 15.6398 21.9725C15.2151 21.9725 14.8713 22.1106 14.6087 22.3867C14.3516 22.6628 14.223 23.012 14.223 23.4343Z" fill="black"></path>
<path d="M18.7305 20.4051C18.6299 20.3022 18.5796 20.1804 18.5796 20.0396C18.5796 19.8989 18.6299 19.7797 18.7305 19.6823C18.8367 19.5794 18.9625 19.528 19.1078 19.528C19.2531 19.528 19.376 19.5794 19.4766 19.6823C19.5828 19.7797 19.6359 19.8989 19.6359 20.0396C19.6359 20.1804 19.5828 20.3022 19.4766 20.4051C19.376 20.5025 19.2531 20.5513 19.1078 20.5513C18.9625 20.5513 18.8367 20.5025 18.7305 20.4051ZM18.7305 25.4078V21.4121H19.485V25.4078H18.7305Z" fill="black"></path>
<path d="M21.4387 25.1236C21.2319 24.8962 21.1285 24.528 21.1285 24.0191V22.07H20.3657V21.4121H21.1285V20.3239L21.883 20.202V21.4121H23.1237V22.07H21.883V23.881C21.883 24.1788 21.9249 24.4116 22.0088 24.5794C22.0926 24.7473 22.2575 24.8312 22.5034 24.8312C22.7325 24.8312 22.9393 24.7743 23.1237 24.6607V25.351C22.9225 25.4484 22.6738 25.4971 22.3776 25.4971C21.9752 25.4971 21.6623 25.3726 21.4387 25.1236Z" fill="black"></path>
<path d="M27.2387 25.4971C26.8419 25.4971 26.515 25.4024 26.2579 25.2129C25.9673 25.0017 25.8219 24.7067 25.8219 24.3277C25.8219 23.9054 26.0036 23.5805 26.3669 23.3531C26.6519 23.1745 27.0375 23.0851 27.5237 23.0851C27.82 23.0851 28.1134 23.1203 28.404 23.1907V22.8577C28.404 22.5654 28.3257 22.3461 28.1693 22.1999C28.0016 22.0537 27.7473 21.9806 27.4064 21.9806C26.9369 21.9806 26.515 22.1133 26.1405 22.3786V21.6639C26.5261 21.4365 26.9844 21.3228 27.5154 21.3228C28.0631 21.3228 28.4738 21.4446 28.7477 21.6882C29.0215 21.9265 29.1585 22.2757 29.1585 22.7359V24.4333C29.1585 24.7148 29.2647 24.8556 29.477 24.8556C29.5609 24.8556 29.6419 24.8366 29.7201 24.7987V25.4078C29.5972 25.4565 29.4631 25.4809 29.3178 25.4809C28.9433 25.4809 28.6778 25.3401 28.5213 25.0586H28.5046C28.3705 25.1777 28.1888 25.2806 27.9597 25.3672C27.7361 25.4538 27.4958 25.4971 27.2387 25.4971ZM27.3728 24.8474C27.7585 24.8474 28.1022 24.731 28.404 24.4982V23.7511C28.1581 23.6807 27.8898 23.6455 27.5992 23.6455C27.3086 23.6455 27.0655 23.6942 26.8699 23.7917C26.6798 23.8891 26.5848 24.0461 26.5848 24.2627C26.5848 24.4522 26.6575 24.5984 26.8028 24.7013C26.9481 24.7987 27.1381 24.8474 27.3728 24.8474Z" fill="black"></path>
<path d="M33.746 24.4414V25.221C33.3995 25.4051 32.9887 25.4971 32.5137 25.4971C31.8598 25.4971 31.3232 25.3022 30.9041 24.9124C30.4849 24.5226 30.2753 24.0299 30.2753 23.4343C30.2753 22.8225 30.4933 22.319 30.9292 21.9238C31.3707 21.5231 31.9157 21.3228 32.564 21.3228C32.9719 21.3228 33.3436 21.4067 33.6789 21.5746V22.3298C33.3101 22.1024 32.9272 21.9887 32.5304 21.9887C32.0889 21.9887 31.7284 22.1268 31.449 22.4029C31.1751 22.679 31.0382 23.0229 31.0382 23.4343C31.0382 23.8458 31.1779 24.1815 31.4574 24.4414C31.7424 24.7013 32.1085 24.8312 32.5556 24.8312C33.0083 24.8312 33.4051 24.7013 33.746 24.4414Z" fill="black"></path>
<path d="M38.0031 24.4414V25.221C37.6566 25.4051 37.2458 25.4971 36.7708 25.4971C36.1169 25.4971 35.5803 25.3022 35.1612 24.9124C34.742 24.5226 34.5324 24.0299 34.5324 23.4343C34.5324 22.8225 34.7504 22.319 35.1863 21.9238C35.6278 21.5231 36.1728 21.3228 36.8211 21.3228C37.229 21.3228 37.6007 21.4067 37.936 21.5746V22.3298C37.5672 22.1024 37.1843 21.9887 36.7875 21.9887C36.346 21.9887 35.9855 22.1268 35.7061 22.4029C35.4322 22.679 35.2953 23.0229 35.2953 23.4343C35.2953 23.8458 35.435 24.1815 35.7145 24.4414C35.9995 24.7013 36.3656 24.8312 36.8127 24.8312C37.2654 24.8312 37.6622 24.7013 38.0031 24.4414Z" fill="black"></path>
<path d="M39.4099 24.8962C38.9963 24.4955 38.7895 24.0001 38.7895 23.41C38.7895 22.8198 38.9963 22.3244 39.4099 21.9238C39.8291 21.5231 40.3488 21.3228 40.9692 21.3228C41.5895 21.3228 42.1065 21.5231 42.5201 21.9238C42.9392 22.3244 43.1488 22.8198 43.1488 23.41C43.1488 24.0001 42.9392 24.4955 42.5201 24.8962C42.1065 25.2968 41.5895 25.4971 40.9692 25.4971C40.3488 25.4971 39.8291 25.2968 39.4099 24.8962ZM39.9464 22.3948C39.6782 22.6655 39.544 23.0039 39.544 23.41C39.544 23.816 39.6782 24.1544 39.9464 24.4251C40.2203 24.6958 40.5612 24.8312 40.9692 24.8312C41.3772 24.8312 41.7153 24.6958 41.9836 24.4251C42.2574 24.1544 42.3943 23.816 42.3943 23.41C42.3943 23.0039 42.2574 22.6655 41.9836 22.3948C41.7153 22.1241 41.3772 21.9887 40.9692 21.9887C40.5612 21.9887 40.2203 22.1241 39.9464 22.3948Z" fill="black"></path>
<path d="M44.5098 25.0505C44.2863 24.796 44.1745 24.3981 44.1745 23.8566V21.4121H44.929V23.7186C44.929 24.1192 44.9961 24.3954 45.1302 24.547C45.2811 24.731 45.4991 24.8231 45.7841 24.8231C46.0244 24.8231 46.2591 24.7581 46.4883 24.6282C46.7174 24.4982 46.913 24.3358 47.0751 24.1409V21.4121H47.8296V25.4078H47.0751V24.9043L47.0583 24.8962C46.6448 25.2968 46.1697 25.4971 45.6332 25.4971C45.1526 25.4971 44.7781 25.3483 44.5098 25.0505Z" fill="black"></path>
<path d="M49.1524 25.4078V21.4121H49.9069V21.9156L49.9237 21.9238C50.3373 21.5231 50.8179 21.3228 51.3656 21.3228C51.8295 21.3228 52.1956 21.469 52.4638 21.7613C52.693 22.0158 52.8075 22.4083 52.8075 22.9389V25.4078H52.053V23.077C52.053 22.6818 51.9888 22.411 51.8602 22.2649C51.7093 22.0916 51.4886 22.005 51.198 22.005C50.9632 22.005 50.7257 22.0672 50.4854 22.1918C50.2506 22.3163 50.0578 22.476 49.9069 22.6709V25.4078H49.1524Z" fill="black"></path>
<path d="M54.7423 25.1236C54.5356 24.8962 54.4322 24.528 54.4322 24.0191V22.07H53.6693V21.4121H54.4322V20.3239L55.1867 20.202V21.4121H56.4274V22.07H55.1867V23.881C55.1867 24.1788 55.2286 24.4116 55.3124 24.5794C55.3962 24.7473 55.5611 24.8312 55.807 24.8312C56.0362 24.8312 56.2429 24.7743 56.4274 24.6607V25.351C56.2262 25.4484 55.9775 25.4971 55.6813 25.4971C55.2789 25.4971 54.9659 25.3726 54.7423 25.1236Z" fill="black"></path>
<line stroke="black" stroke-width="0.5" x1="87.75" x2="87.75" y1="28" y2="1.09279e-08"></line>
<path d="M98.09 11.65V13.4H100.44V14.51H98.09V16.36H100.74V17.5H96.69V10.51H100.74V11.65H98.09ZM107.192 17.5L105.682 15.15L104.312 17.5H102.732L104.932 13.98L102.702 10.52H104.312L105.822 12.86L107.182 10.52H108.762L106.572 14.03L108.802 17.5H107.192ZM110.528 14C110.528 13.3133 110.681 12.7 110.988 12.16C111.301 11.6133 111.724 11.19 112.258 10.89C112.798 10.5833 113.401 10.43 114.068 10.43C114.848 10.43 115.531 10.63 116.118 11.03C116.704 11.43 117.114 11.9833 117.348 12.69H115.738C115.578 12.3567 115.351 12.1067 115.058 11.94C114.771 11.7733 114.438 11.69 114.058 11.69C113.651 11.69 113.288 11.7867 112.968 11.98C112.654 12.1667 112.408 12.4333 112.228 12.78C112.054 13.1267 111.968 13.5333 111.968 14C111.968 14.46 112.054 14.8667 112.228 15.22C112.408 15.5667 112.654 15.8367 112.968 16.03C113.288 16.2167 113.651 16.31 114.058 16.31C114.438 16.31 114.771 16.2267 115.058 16.06C115.351 15.8867 115.578 15.6333 115.738 15.3H117.348C117.114 16.0133 116.704 16.57 116.118 16.97C115.538 17.3633 114.854 17.56 114.068 17.56C113.401 17.56 112.798 17.41 112.258 17.11C111.724 16.8033 111.301 16.38 110.988 15.84C110.681 15.3 110.528 14.6867 110.528 14ZM120.944 16.39H123.244V17.5H119.544V10.52H120.944V16.39ZM126.513 10.52V14.84C126.513 15.3133 126.637 15.6767 126.883 15.93C127.13 16.1767 127.477 16.3 127.923 16.3C128.377 16.3 128.727 16.1767 128.973 15.93C129.22 15.6767 129.343 15.3133 129.343 14.84V10.52H130.753V14.83C130.753 15.4233 130.623 15.9267 130.363 16.34C130.11 16.7467 129.767 17.0533 129.333 17.26C128.907 17.4667 128.43 17.57 127.903 17.57C127.383 17.57 126.91 17.4667 126.483 17.26C126.063 17.0533 125.73 16.7467 125.483 16.34C125.237 15.9267 125.113 15.4233 125.113 14.83V10.52H126.513ZM135.516 17.57C135.029 17.57 134.589 17.4867 134.196 17.32C133.809 17.1533 133.503 16.9133 133.276 16.6C133.049 16.2867 132.933 15.9167 132.926 15.49H134.426C134.446 15.7767 134.546 16.0033 134.726 16.17C134.913 16.3367 135.166 16.42 135.486 16.42C135.813 16.42 136.069 16.3433 136.256 16.19C136.443 16.03 136.536 15.8233 136.536 15.57C136.536 15.3633 136.473 15.1933 136.346 15.06C136.219 14.9267 136.059 14.8233 135.866 14.75C135.679 14.67 135.419 14.5833 135.086 14.49C134.633 14.3567 134.263 14.2267 133.976 14.1C133.696 13.9667 133.453 13.77 133.246 13.51C133.046 13.2433 132.946 12.89 132.946 12.45C132.946 12.0367 133.049 11.6767 133.256 11.37C133.463 11.0633 133.753 10.83 134.126 10.67C134.499 10.5033 134.926 10.42 135.406 10.42C136.126 10.42 136.709 10.5967 137.156 10.95C137.609 11.2967 137.859 11.7833 137.906 12.41H136.366C136.353 12.17 136.249 11.9733 136.056 11.82C135.869 11.66 135.619 11.58 135.306 11.58C135.033 11.58 134.813 11.65 134.646 11.79C134.486 11.93 134.406 12.1333 134.406 12.4C134.406 12.5867 134.466 12.7433 134.586 12.87C134.713 12.99 134.866 13.09 135.046 13.17C135.233 13.2433 135.493 13.33 135.826 13.43C136.279 13.5633 136.649 13.6967 136.936 13.83C137.223 13.9633 137.469 14.1633 137.676 14.43C137.883 14.6967 137.986 15.0467 137.986 15.48C137.986 15.8533 137.889 16.2 137.696 16.52C137.503 16.84 137.219 17.0967 136.846 17.29C136.473 17.4767 136.029 17.57 135.516 17.57ZM141.6 10.52V17.5H140.2V10.52H141.6ZM150.253 10.52L147.693 17.5H145.993L143.433 10.52H144.933L146.853 16.07L148.763 10.52H150.253ZM153.492 11.65V13.4H155.842V14.51H153.492V16.36H156.142V17.5H152.092V10.51H156.142V11.65H153.492Z" fill="black"></path>
</svg>
<p class="mt-vip-cb-left-container_message">24.9% Representative APR Variable</p>
<a class="mt-vip-cb-left-container_compare-link" href="/credit">Compare our credit options</a>
</div>
<div class="mt-vip-cb__center-container">
<div class="mt-vip-cb-center-container-bullet-messaging">
<div class="mt-vip-cb-center-container-bullet-messaging__messagin-container highlight-bullet">
<h4 class="mt-vip-cb-center-message">Sign up for a nextpay credit account by <span>26th June</span> & opt in to marketing emails to receive your invite</h4>
</div>
</div>
<p class="mt-vip-cb-center-credit-message">Credit subject to status.</p>
</div>
<div class="mt-vip-cb__right-container"><a class="vip-cb-cta" href="/secure/account/MyAccount/CreditAccount/Nextpay">Check your eligibility</a>
<p class="mt-vip-cb-tcs-and-privacy"><a class="vip-cb-terms" href="/terms">T&Cs apply</a>. A soft credit search will be conducted. For further information please see our <a class="vip-cb-privacy" href="/privacy">Privacy & Cookie Policy</a>.</p>
</div>
</div>
<div class="slider-item__slider-border-styling"> </div>
</div>
</div>
<div class="dots"> </div>
</div>
/* CAROUSEL */
.slider {
width: 100%;
max-width: 716px;
margin: 50px auto 0 auto;
overflow: hidden;
background: transparent;
}
.slider-items-container {
display: flex;
flex-wrap: wrap;
height: auto;
transition: transform 0.35s ease-in-out;
}
.slider-items-container img {
width: 100vw;
display: block;
}
.slider-item {
/* border: 2px solid #d59000; */
width: 716px;
}
.slider-item__slider-border-styling {
font-size: 0;
height: 100%;
width: 716px;
position: absolute;
z-index: 1;
top: 2px;
background: rgb(218, 98, 50);
background: -moz-linear-gradient(
90deg,
rgba(218, 98, 50, 1) 0%,
rgba(79, 14, 101, 1) 100%
);
background: -webkit-linear-gradient(
90deg,
rgba(218, 98, 50, 1) 0%,
rgba(79, 14, 101, 1) 100%
);
background: linear-gradient(
90deg,
rgba(218, 98, 50, 1) 0%,
rgba(79, 14, 101, 1) 100%
);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#da6232", endColorstr="#4f0e65", GradientType=1);
}
.slider .dots {
width: 100%;
display: flex;
justify-content: center;
margin: 0 auto;
padding-top: 10px;
}
.slider .dot {
width: 8px;
height: 8px;
background: #d1d1d1;
transition: 0.15s ease-in-out;
border-radius: 8px;
cursor: pointer;
margin: 0 6px;
}
.slider .dot.active {
background: #515151;
}
/* BANNERS */
.mt-vip-top-section-container {
display: flex;
justify-content: center;
align-items: center;
position: relative;
z-index: 2;
padding: 4px 0;
background: rgb(218, 98, 50);
background: -moz-linear-gradient(
90deg,
rgba(218, 98, 50, 1) 0%,
rgba(79, 14, 101, 1) 100%
);
background: -webkit-linear-gradient(
90deg,
rgba(218, 98, 50, 1) 0%,
rgba(79, 14, 101, 1) 100%
);
background: linear-gradient(
90deg,
rgba(218, 98, 50, 1) 0%,
rgba(79, 14, 101, 1) 100%
);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#da6232", endColorstr="#4f0e65", GradientType=1);
}
.mt-vip-top-section-container__message {
margin: unset;
color: #fff;
text-align: center;
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: 18px;
letter-spacing: 1px;
text-transform: uppercase;
padding: unset;
}
.mt-vip-top-section-container__message > span {
display: none;
}
.mt-vip-top-section-container__svg {
margin-left: 6px;
max-width: 69px;
filter: invert(1);
}
.mt-vip-bottom-left-glitter {
position: absolute;
bottom: 4px;
left: 0;
width: 100%;
max-width: 224px;
z-index: 1;
}
.mt-vip-top-right-glitter {
position: absolute;
top: -24px;
right: 0;
width: 100%;
max-width: 276px;
z-index: 1;
}
.mt-vip-cb {
width: 712px;
height: 130px;
display: flex;
align-items: center;
justify-content: space-between;
overflow: hidden;
background: #f5f4f0;
background-position: unset;
background-size: cover;
background-repeat: no-repeat;
position: relative;
left: 2px;
z-index: 2;
}
/* .mt-vip-cb.slide-two {
height: 132px;
} */
.mt-vip-cb__center-container {
width: 41%;
flex-direction: column;
display: flex;
align-items: flex-start;
z-index: 2;
padding-top: 7px;
padding-bottom: 1px;
}
.mt-vip-cb-center-container-bullet-messaging {
width: 100%;
}
.mt-vip-cb-center-container-bullet-messaging__messagin-container {
display: flex;
align-items: center;
max-width: 225px;
margin: 0 auto 8px auto;
}
.mt-vip-cb-center-container-bullet-messaging__messagin-container.highlight-bullet {
border-radius: 8px;
padding: 4px 11px;
max-width: 225px;
margin-bottom: 5px;
border: 2px solid #dd6432;
}
.slide-two
.mt-vip-cb-center-container-bullet-messaging__messagin-container.highlight-bullet {
background: linear-gradient(#fff, #fff) padding-box,
linear-gradient(to right, #bb5303, #d48f00) border-box;
}
.mt-vip-cb-center-container-bullet-messaging__messagin-container.highlight-bullet
> .mt-vip-cb-center-message {
color: #0a1c2b;
}
.slide-one .mt-vip-cb-center-container-bullet-messaging__messagin-container.highlight-bullet
> .mt-vip-cb-center-message {
margin-top: 1px;
}
.slide-two
.mt-vip-cb-center-container-bullet-messaging__messagin-container.highlight-bullet
> .mt-vip-cb-center-message {
text-align: center;
color: #000;
font-size: 13px;
line-height: 140%;
max-width: 236px;
}
.slide-two
.mt-vip-cb-center-container-bullet-messaging__messagin-container.highlight-bullet {
padding: 12px 15px;
max-width: 224px;
}
.mt-vip-cb-center-svg {
margin-right: 10px;
}
.mt-vip-cb-center-svg circle {
fill: #dd6432;
}
.mt-vip-cb-center-message {
margin: unset;
color: #000;
font-size: 11px;
font-weight: 400;
line-height: unset;
position: relative;
}
.mt-vip-cb-center-message .mt-vip-cb-center-message-dagger {
font-weight: 400;
position: absolute;
top: -2px;
font-size: 7px;
}
.mt-vip-cb-center-message > span {
font-weight: 600;
}
.mt-vip-cb-center-credit-message {
color: #000;
text-align: center;
font-size: 10px;
font-weight: 400;
line-height: 13px;
margin: 5px auto;
max-width: 211px;
}
.mt-vip-cb-center-credit-message .mt-vip-cb-center-credit-message-dagger {
font-size: 6px;
vertical-align: super;
}
.slide-one .mt-vip-cb-center-credit-message {
margin-top: -2.34px;
}
.mt-vip-cb__left-container {
width: calc(27% - 30px);
padding-left: 30px;
z-index: 2;
}
.mt-vip-cb__left-container > svg {
margin-bottom: 12px;
}
.mt-vip-cb-left-container_message {
color: #000;
font-size: 11px;
font-weight: 600;
line-height: 16.5px;
margin-top: unset;
margin-bottom: -5px;
max-width: 138px;
}
.mt-vip-cb-left-container_compare-link {
color: #000;
font-size: 10px;
font-weight: 300;
line-height: 150%;
text-decoration-line: underline;
margin: unset;
}
.vip-cb-cta,
.mt-vip-cb-compare,
.mt-vip-cb-compare a,
.mt-vip-cb-usp-message,
.mt-vip-cb-usp-message span,
.mt-vip-cb-compare-min,
.mt-vip-top-section-container__message,
.mt-vip-cb-center-message,
.mt-vip-cb-left-container_message,
.mt-vip-cb-left-container_compare-link,
.mt-vip-cb-tcs-and-privacy,
.mt-vip-cb-center-credit-message {
font-family: "Poppins", "Azo-Sans", sans-serif !important;
}
.vip-cb-se {
display: none;
}
.vip-cb-pr-message {
font-size: 11px;
line-height: 15px;
margin: unset;
letter-spacing: 0.15px;
}
.vip-cb-cta {
width: 100%;
display: block;
max-width: 132px;
text-align: center;
font-size: 11px;
border-radius: 100px;
border: 0px solid #6f1a6c;
background: #6f1a6c;
line-height: 17px;
padding: 7.5px 10px;
margin: 0 auto 10px auto;
text-decoration: unset;
color: #fff;
font-weight: 500;
}
.vip-cb-cta:hover {
text-decoration: unset;
color: #fff;
}
.mt-vip-cb__np {
display: none;
width: 16%;
}
.mt-vip-cb__np img {
width: 100%;
max-width: 99px;
}
.mt-vip-cb__right-container {
width: calc(25% - 30px);
padding-right: 30px;
margin-top: -4px;
z-index: 2;
}
.mt-vip-cb-tcs-and-privacy,
.mt-vip-cb-tcs-and-privacy > a {
color: #000;
font-size: 10px;
font-style: normal;
font-weight: 300;
line-height: 130%;
text-align: center;
margin: unset;
}
.mt-vip-cb-compare a {
color: #000;
}
.mt-vip-cb-usp {
display: flex;
align-items: center;
margin-bottom: 8px;
}
.mt-vip-cb-usp:last-child {
margin-bottom: unset;
}
.mt-vip-cb-usp-message {
margin: 0;
font-size: 12px;
position: relative;
letter-spacing: 0.2px;
}
.mt-vip-cb-usp-message span {
font-weight: 700;
}
.mt-vip-symbol {
font-weight: 100;
font-size: 7px;
position: absolute;
top: 1px;
}
.mt-vip-cb-svg-tick {
margin-right: 5px;
margin-bottom: 5px;
width: 16px;
height: 16px;
}
.mt-vip-cb-compare-min {
font-weight: 400;
}
.mt-vip-cb-min-spend {
font-size: 8px;
margin-bottom: unset;
margin-top: 5px;
margin-left: 5px;
position: relative;
}
.mt-vip-cb-min-spend span {
position: absolute;
left: -5px;
top: -5px;
}
@media (min-width: 768px) {
.mt-vip-cb-compare-min {
display: none;
}
}
@media (max-width: 768px) {
.mt-vip-cb-compare-min {
display: block;
}
}
.container.body-content {
max-width: unset !important;
}
$(document).ready(function () {
/* GaData object build */
const gaData = {
category: "MT-3772822-DT",
action: "Pageview",
loaded: "Loaded",
rec: "Next Credit - Mar VIP Banners",
pageType: "MA",
countryCode: "UK",
click: "Click",
load: "Load"
};
const gaDataLabel = `${gaData.pageType} | ${gaData.rec} | ${gaData.countryCode} | ${gaData.action}`;
const gaLoadDataLabel = `${gaData.pageType} | ${gaData.rec} | ${gaData.countryCode} | ${gaData.loaded}`;
const gaClickDataLabel = `${gaData.pageType} | ${gaData.rec} | ${gaData.countryCode} | ${gaData.click}`;
// GA - PAGE VIEW
try {
TrackGAEvent(gaData.category, gaData.action, gaDataLabel, 0);
} catch (e) {
console.error(e.message);
}
// CAROUSEL - SLIDE ONE
// GA - CLICK EVENT FOR CHECK YOUR ELIG.
$(".slide-one .vip-cb-cta").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 1 | Check Your Eligibility`
);
} catch (err) {
console.error(err.message);
}
});
// GA - CLICK EVENT FOR COMPARE OUR CREDIT OPTIONS
$(".slide-one .mt-vip-cb-left-container_compare-link").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 1 | Compare Our Credit Options`
);
} catch (err) {
console.error(err.message);
}
});
// GA - CLICK EVENT FOR TERMS
$(".slide-one .vip-cb-terms").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 1 | T&Cs Apply`
);
} catch (err) {
console.error(err.message);
}
});
// GA - CLICK EVENT FOR PRIVACY
$(".slide-one .vip-cb-privacy").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 1 | Privacy & Cookie Policy`
);
} catch (err) {
console.error(err.message);
}
});
// CAROUSEL - SLIDE TWO
// GA - CLICK EVENT FOR CHECK YOUR ELIG.
$(".slide-two .vip-cb-cta").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 2 | Check Your Eligibility`
);
} catch (err) {
console.error(err.message);
}
});
// GA - CLICK EVENT FOR COMPARE OUR CREDIT OPTIONS
$(".slide-two .mt-vip-cb-left-container_compare-link").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 2 | Compare Our Credit Options`
);
} catch (err) {
console.error(err.message);
}
});
// GA - CLICK EVENT FOR TERMS
$(".slide-two .vip-cb-terms").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 2 | T&Cs Apply`
);
} catch (err) {
console.error(err.message);
}
});
// GA - CLICK EVENT FOR PRIVACY
$(".slide-two .vip-cb-privacy").click(function () {
try {
TrackGAEvent(
gaData.category,
gaData.click,
`${gaClickDataLabel} | Slide 2 | Privacy & Cookie Policy`
);
} catch (err) {
console.error(err.message);
}
});
// CAROUSEL
function setSlider() {
$(".slider").each(function () {
var $slider = $(this),
$itemscontainer = $slider.find(".slider-items-container");
if ($itemscontainer.find(".slider-item.active").length == 0) {
$itemscontainer.find(".slider-item").first().addClass("active");
}
function setWidth() {
var totalWidth = 0;
$($itemscontainer)
.find(".slider-item")
.each(function () {
totalWidth += $(this).outerWidth();
});
$itemscontainer.width(totalWidth);
}
function setTransform() {
var $activeItem = $itemscontainer.find(".slider-item.active"),
activeItemOffset = $activeItem.offset().left,
itemsContainerOffset = $itemscontainer.offset().left,
totalOffset = activeItemOffset - itemsContainerOffset;
$itemscontainer.css({
transform: "translate( -" + totalOffset + "px, 0px)"
});
}
function nextSlide() {
var activeItem = $itemscontainer.find(".slider-item.active"),
activeItemIndex = activeItem.index(),
sliderItemTotal = $itemscontainer.find(".slider-item").length,
nextSlide = 0;
if (activeItemIndex + 1 > sliderItemTotal - 1) {
nextSlide = 0;
} else {
nextSlide = activeItemIndex + 1;
}
var nextSlideSelect = $itemscontainer
.find(".slider-item")
.eq(nextSlide),
itemContainerOffset = $itemscontainer.offset().left,
totalOffset = nextSlideSelect.offset().left - itemContainerOffset;
$itemscontainer.find(".slider-item.active").removeClass("active");
nextSlideSelect.addClass("active");
$slider.find(".dots").find(".dot").removeClass("active");
$slider.find(".dots").find(".dot").eq(nextSlide).addClass("active");
$itemscontainer.css({
transform: "translate( -" + totalOffset + "px, 0px)"
});
}
// LOOP CAROUSEL
var interval;
interval = setInterval(function () {
nextSlide();
}, 7000);
// STOP LOOP WHEN HOVERED OVER CAROUSEL
$(".slider").mouseover(function () {
clearInterval(interval);
});
// START LOOP WHEN NOT HOVERED OVER CAROUSEL
$(".slider").mouseleave(function () {
interval = setInterval(function () {
nextSlide();
}, 7000);
});
function prevSlide() {
var activeItem = $itemscontainer.find(".slider-item.active"),
activeItemIndex = activeItem.index(),
sliderItemTotal = $itemscontainer.find(".slider-item").length,
nextSlide = 0;
if (activeItemIndex - 1 < 0) {
nextSlide = sliderItemTotal - 1;
} else {
nextSlide = activeItemIndex - 1;
}
var nextSlideSelect = $itemscontainer
.find(".slider-item")
.eq(nextSlide),
itemContainerOffset = $itemscontainer.offset().left,
totalOffset = nextSlideSelect.offset().left - itemContainerOffset;
$itemscontainer.find(".slider-item.active").removeClass("active");
nextSlideSelect.addClass("active");
$slider.find(".dots").find(".dot").removeClass("active");
$slider.find(".dots").find(".dot").eq(nextSlide).addClass("active");
$itemscontainer.css({
transform: "translate( -" + totalOffset + "px, 0px)"
});
}
function makeDots() {
var activeItem = $itemscontainer.find(".slider-item.active"),
activeItemIndex = activeItem.index(),
sliderItemTotal = $itemscontainer.find(".slider-item").length;
for (i = 0; i < sliderItemTotal; i++) {
$slider.find(".dots").append("<div class='dot'></div>");
}
$slider
.find(".dots")
.find(".dot")
.eq(activeItemIndex)
.addClass("active");
}
setWidth();
setTransform();
makeDots();
$(window).resize(function () {
setWidth();
setTransform();
});
var nextBtn = $slider.find(".controls").find(".next-btn"),
prevBtn = $slider.find(".controls").find(".prev-btn");
nextBtn.on("click", function (e) {
e.preventDefault();
nextSlide();
});
prevBtn.on("click", function (e) {
e.preventDefault();
prevSlide();
});
$slider
.find(".dots")
.find(".dot")
.on("click", function (e) {
var dotIndex = $(this).index(),
totalOffset =
$itemscontainer.find(".slider-item").eq(dotIndex).offset().left -
$itemscontainer.offset().left;
$itemscontainer.find(".slider-item.active").removeClass("active");
$itemscontainer.find(".slider-item").eq(dotIndex).addClass("active");
$slider.find(".dots").find(".dot").removeClass("active");
$(this).addClass("active");
$itemscontainer.css({
transform: "translate( -" + totalOffset + "px, 0px)"
});
});
// SHOW SLIDER
$(".slider").show();
// GA - LOAD
try {
TrackGAEvent(gaData.category, gaData.load, `${gaLoadDataLabel}`);
} catch (err) {
console.error(err.message);
}
});
}
setSlider();
});
Also see: Tab Triggers