Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1056627

    Hi,

    is this Text- / Headline Effect possible with Enfold?
    https://www.bauwens.de/wohnen

    I mean the Effect over the word “Urban Excellence” and over the Text “Mit unserem Exzellenz-Anspruch an Bauwens-Immobilien garantieren wir Ihnen Professionalität in allen Bereichen und schließlich ein perfektes, neues Zuhause.”

    i know its possible with a picture, but i dont know if it works with centered/centered special heading and text element!?

    Thx for feedback or solution.
    AK

    #1056779

    Hey ak-muc,

    This is a parallax effect. Enfold has it with the help of color section but just for images, not for text.

    Best regards,
    Victoria

    #1081223

    Everything is in the code – just look:

    here is the layout – working with codeblock element ( Deactivate schema.org markup ) means no additional containers.

    what is the codeblock element input:
    and the surrounding color-section got custom-class: fixed-heading

    <div class="mask">
    	<div class="mask__content">
    		<div class="container is-full">
    			<div class="teaser is-centered">
    				<div class="teaser__title">
    					<h2 class="is-h2">Your Text</h2>
    					<h2 class="is-h1">A next line</h2>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>

    your input for quick css:

    .mask {
    	height:400px;
    }
    
    @supports ((-webkit-clip-path:polygon(0 -1px,0 calc(100% + 1px),100% calc(100% + 1px),100% -1px)) or (clip-path:polygon(0 -1px,0 calc(100% + 1px),100% calc(100% + 1px),100% -1px))) 
    {
    	.mask {
    		-webkit-clip-path:polygon(0 -1px,0 calc(100% + 1px),100% calc(100% + 1px),100% -1px);
    		clip-path:polygon(0 -1px,0 calc(100% + 1px),100% calc(100% + 1px),100% -1px);
    		clip:rect(0,auto,auto,0)
    	}
    	body:not(.is-noscroll) .mask {
    		position:relative
    	}
    
    	.mask .mask__content {
    		position:fixed
    	}
    
    	.mask .mask__content {
    		top:50vh
    	}
    }
    
    .mask__content {
    	position:absolute;
    	width:100%;
    	left:0;
    	transform:translateY(-50%);
    	z-index:20;
    	top:50%
    }
    
    .fixed-heading .content {
        padding: 0 !important;
    }
    
    h2.is-h2 {
        text-align: center !important;
        font-size: 36px;
        font-weight: normal;
        text-transform: none !important;
        line-height: 60px;
    }

    if you like to style the h2 change the class in the code block element in is-h1 or something else

    the color-section can have background as you like. And: “no minimum height” ( is given by mask height )

    See example page: https://webers-testseite.de/schrift-und-parallax/

    #1081233

    But: – remember that fixed positioning is alway difficult to manage from mobile devices !
    Edit: it works on iPad mini

    And i do not realy know how to have in code-block element here a forced line-break ( <br/> nor <br> works here)
    Edit: einfach eine neue Heading Zeile einsetzen

    PPS: if you have the background-image of the color section in fixed or parallax style – the ipad/iphone does not go with the text effect.
    Then all is set to scroll

    • This reply was modified 5 years, 8 months ago by Guenni007.
    #1081327

    next question from you:

    clip text only works on firefox with background-attachment : scroll.
    but on chrome and safari they will do the trick with : fixed
    so we need a fallback for firefox
    see same example page above.

    take a color-section give it a custom class like: cliptext
    put in it a heading alb element ( or text-block Alb)

    .cliptext .av-special-heading-tag  {
      background :url('https://link-to-your-image');
      display: block;
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
    
      color: #000;
      font-size: 200px !important;
      font-weight: 900;
      line-height: 1.5em;
      letter-spacing: .1em;
      text-rendering: optimizeLegibility;
    
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      text-fill-color: transparent;
    
      -webkit-filter: drop-shadow(2px 2px 5px #333);
      filter: drop-shadow(2px 2px 5px #333);
    }
    
    @supports(-moz-appearance:none){
      .cliptext .av-special-heading-tag {background-attachment:inherit}
    }
    #1081389

    WOW Thanks a lot Guenni … i will check it… i appreciate that!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.