Models have been an important part of the websites for two decades. Stacking content and use fetch One is a great way to improve the UX on both desktops and mobiles to meet the tasks. Unfortunately most developers do not know that HTML and JavaScript sunglasses have implemented the local modal system by the Lord popover Attitude – Let’s check it!

Html

Making a local html modal contains it popovertarget Attribute as a trigger and d popover Attribute, make a folded with one idTo indicate the element of material:



This is the contents of the popover

Click buttonThe pop over will open. However, the traditional background layer will not have color in the pop over, so we will need to implement it ourselves with some CSS magic.

CSS

The contents of pop over content are quite standard but we can use the browser styling sheet selector selector to style modal’s “background”:

/* contents of the popover */
[popover] {
  background: lightblue;
  padding: 20px;
}

/* the dialog's "modal" background */
[popover]:-internal-popover-in-top-layer::backdrop {
  background: rgba(0, 0, 0, .5);  
}

:-internal-popover-in-top-layer::backdrop Moodle represents the “background”. Traditionally, the UI has been an element that shows a stacking relationship with blurred.

https://codepen.io/darkwing/pen/ylrqevk

  • Facebook Open graph meta tags

    It is no secret that Facebook has become a major traffic driver for all kinds of websites. Nowadays, even major corporations have moved users directly to their Facebook pages instead of corporate websites. And obviously there are Facebook “likes” and “proposal” widgets on each website. One …

  • Send text messages with PHP

    Baby these days, I tell you. They just care about technology. Video game bottle water oh, and texting, always texting. In my day, we had what we had … okay, I had all these things. But I still don’t get …

  • Make Speeders with Flex Box

    Before I hit it, Flex was one of the biggest fans in the box but, because of moving in Mozilla, I never had the opportunity to use in any practice project. That way, the Flex Box still looks like a little mystery for me. It’s a lot …

  • JQURY CONTACT PLUGN

    You may have gone to sites like Rapidshir and Megaploid that allow you to download files but will wait for a certain number of seconds before you give you a download link. I’ve developed a similar script but my script allows you to stimulate the CSS font size …



Source link
Categories: Weight Loss

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *