آموزش تبدیل عکس به شکل قلب با css

آموزش تبدیل عکس به شکل قلب با css
				
					<!DOCTYPE html>
<html lang="en">
<head>
    
    <title>Title</title>
    <style>
        .heart {
            height: 500px;
            aspect-ratio: 1;
            --_m: radial-gradient(#000 69%,#0000 70%) 84.5%/50%;
            -webkit-mask-box-image: var(--_m);
            mask-border: var(--_m);
            clip-path: polygon(-41% 0,50% 91%, 141% 0);
            background: #cc333f;
            display: block;
            margin-left: auto;
            margin-right: auto;
            vertical-align: baseline;
        }
        @supports not (-webkit-mask-box-image: var(--_m)) {
            .heart {
                mask:
                        radial-gradient(at 70% 31%,#000 29%,#0000 30%),
                        radial-gradient(at 30% 31%,#000 29%,#0000 30%),
                        linear-gradient(#000 0 0) bottom/100% 50% no-repeat;
            }
        }
    </style>
</head>
<body>
<div>
    <img decoding="async" class="heart" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E" data-lazy-src="https://anticipationevents.com/wp-content/uploads/2020/10/043-pilsenwedding.jpg"><noscript><img decoding="async" class="heart" src="https://anticipationevents.com/wp-content/uploads/2020/10/043-pilsenwedding.jpg"></noscript>

</div>
<script>var rocket_beacon_data = {"ajax_url":"https:\/\/webshift.ir\/wp-admin\/admin-ajax.php","nonce":"4688445d05","url":"https:\/\/webshift.ir\/how-to-convert-a-photo-into-a-heart-shape-with-css","is_mobile":false,"width_threshold":1600,"height_threshold":700,"delay":500,"debug":null,"status":{"atf":true,"lrc":true},"elements":"img, video, picture, p, main, div, li, svg, section, header, span","lrc_threshold":1800}</script><script data-name="wpr-wpr-beacon" src='https://webshift.ir/wp-content/plugins/wp-rocket/assets/js/wpr-beacon.min.js' async></script><script>class RocketElementorAnimation{constructor(){this.deviceMode=document.createElement("span"),this.deviceMode.id="elementor-device-mode-wpr",this.deviceMode.setAttribute("class","elementor-screen-only"),document.body.appendChild(this.deviceMode)}_detectAnimations(){let t=getComputedStyle(this.deviceMode,":after").content.replace(/"/g,"");this.animationSettingKeys=this._listAnimationSettingsKeys(t),document.querySelectorAll(".elementor-invisible[data-settings]").forEach(t=>{const e=t.getBoundingClientRect();if(e.bottom>=0&&e.top<=window.innerHeight)try{this._animateElement(t)}catch(t){}})}_animateElement(t){const e=JSON.parse(t.dataset.settings),i=e._animation_delay||e.animation_delay||0,n=e[this.animationSettingKeys.find(t=>e[t])];if("none"===n)return void t.classList.remove("elementor-invisible");t.classList.remove(n),this.currentAnimation&&t.classList.remove(this.currentAnimation),this.currentAnimation=n;let s=setTimeout(()=>{t.classList.remove("elementor-invisible"),t.classList.add("animated",n),this._removeAnimationSettings(t,e)},i);window.addEventListener("rocket-startLoading",function(){clearTimeout(s)})}_listAnimationSettingsKeys(t="mobile"){const e=[""];switch(t){case"mobile":e.unshift("_mobile");case"tablet":e.unshift("_tablet");case"desktop":e.unshift("_desktop")}const i=[];return["animation","_animation"].forEach(t=>{e.forEach(e=>{i.push(t+e)})}),i}_removeAnimationSettings(t,e){this._listAnimationSettingsKeys().forEach(t=>delete e[t]),t.dataset.settings=JSON.stringify(e)}static run(){const t=new RocketElementorAnimation;requestAnimationFrame(t._detectAnimations.bind(t))}}document.addEventListener("DOMContentLoaded",RocketElementorAnimation.run);</script></body>
</html>
				
			
error: شماره تماس : 09193156178