CSS Animated Checkmark

Since you are using a css file, you will need to convert the scss to css. Here’s a demo: .checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke-miterlimit: 10; stroke: #7ac142; fill: none; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards; } .checkmark { width: 56px; height: 56px; border-radius: 50%; display: block; stroke-width: 2; stroke: … Read more

Changing background color of Ionic ion-item in CSS

I want to share my solution: I use the custom CSS properties of ionic 4, so if I want to change the background color I can create a new class called “.item-background-color” and change the color of the CSS property that I want to modify. For example: my-page.page.scss .item-background-color{ –ion-item-background:#015f01d5; } then, I only add … Read more

Pen highlighter effect in css

for a hyper realistic pen highlighter! Play with the background gradients for the intensity and with text-shadow to give it a washed effect. span { padding: 0.6em 13.7px; line-height: 1.8em; font-size: 23px; font-family: -apple-system,BlinkMacSystemFont,”Segoe UI”,Roboto,”Helvetica Neue”,Arial; } span.highlight { font-weight: bolder; background: linear-gradient(104deg, rgba(130, 255, 173,0) 0.9%, rgba(130, 255, 173,1.25) 2.4%, rgba(130, 255, 173,0.5) 5.8%, … Read more

How can I create spoiler text?

The <details> HTML tag was designed specifically for this purpose. Here is the example from the MDN documentation. The tag is supported on all current browsers, but not on IE. <details> <summary>Details</summary> Something small enough to escape casual notice. </details>

how to set active class to nav menu from twitter bootstrap

You can use this JavaScript\jQuery code: // Sets active link in Bootstrap menu // Add this code in a central place used\shared by all pages // like your _Layout.cshtml in ASP.NET MVC for example $(‘a[href=”‘ + this.location.pathname + ‘”]’).parents(‘li,ul’).addClass(‘active’); It’ll set the <a>‘s parent <li> and the <li>‘s parent <ul> as active. A simple solution … Read more

Increasing the size of a bootstrap checkbox

I added classes like *-sm, *-md, *-lg, *-xl for the bootstrap switch. Here I made all resolutions switch with one @mixin ( @mixin is very similar to JS functions but it does not return anything ). For Bootstrap 4 custom-switch-sm, custom-switch-md, custom-switch-lg, custom-switch-xl SCSS: https://codepen.io/nisharg/pen/VwLbYvv CSS: https://codepen.io/nisharg/pen/mdJmywW LIVE SNIPPET (CSS) /* for sm */ .custom-switch.custom-switch-sm … Read more