Forum Replies Created
-
AuthorPosts
-
the icon you like to insert – is it a colored icon or do you like to use the white globe icon with that green background?
if you like to use it as monochrome icon – i would upload that monochrome globe as svg to fontello and create your custom icon font set.
Then you can use it like all the other entypo-fontello icons.if you like to use that bicolor globe icon – you can set those icons to display none and insert via pseudo container your colored icon:
#top #main ul.avia-icon-list.av-iconlist-small li:before { content: "" !important; width: 40px; height: 40px; float: left; margin-left: -10px; margin-right: 10px; background-color: transparent; /**** with background - replace ***/ background-image: url(/wp-content/uploads/globe-color.png); background-size: 30px 30px; background-repeat: no-repeat; background-position: center; border-radius: 100%; top: -3px; position: relative; } #top .avia-icon-list-container .iconlist_icon { display: none }
But: to better select your small icon list – it would certainly be advisable to use a custom class.
i guess your installation is based upon a demo. so open your frontpage in edit mode – on the right side there are boxes for Publish, Page Attributes, Layout etc.
On Layout there is: “Header visibility and transparency”
or if it is not that – you had to look for an existing css that rules the header transparency. However, you should have created this yourself, because as far as I know the demos work without additional quick css entries.
The easiest way would be to see the page in question in order to be able to give better advice.
November 29, 2024 at 3:27 pm in reply to: Same height and position for content elements in layout elements #1472580with your nick it is easy to find your page – so maybe you give us the link to the page it concerns ;)
what about that way (in addition) in the docu via: avf_dynamic_stylesheet_filename
see: https://kriesi.at/documentation/enfold/personalize-theme/All of the Styling options you set in the theme’s Styling options are saved to a file in your uploads folder called enfold.css. If you have changed the theme name or something like that you may want to rename this file to better reflect your own branding. You can use the following function to do just that:
function avia_change_filename($stylesheet){ return 'custom_name'; } add_filter('avf_dynamic_stylesheet_filename', 'avia_change_filename');
Contact Form 7 and Conditional Fields for Contact Form 7 are well documented – and still free
November 28, 2024 at 9:12 pm in reply to: Animation starts when texts are visible in the browser #1472544mach doch mal einen Versuch auf der Villa Seite und nimm dort statt des 1500×1000 px bildes das Original.
das original hat knapp 500kb das andere 1,2MB. – such mal hier im Forum nach dem Filter : avf_jpeg_quality
da erfährst du warum die recalculierten großen Bilder meist viel mehr Filesize haben als die Originale.
Wenn du nix findest melde ich mich Morgen nochmal.but isn’t this default behaviour?
see: https://kriesi.at/themes/enfold-2017/elements/post-slider/
November 28, 2024 at 4:06 pm in reply to: Animation starts when texts are visible in the browser #1472519naja – dein intersectionObserver Code war so nicht zu gebrauchen oder?
( ich glaube threshold war so falsch, ein Sonderzeichen war nicht ganz richtig etc. da habe ich dann lieber auf bekanntes zurückgegriffen – wobei : warum das mit dem “eintrag” funktioniert muss ich nochmal checken )PS: wenn du die Klasse übrigens während diese Seite durchgescrollt wurde behalten möchtest lösche die else condition.
PPS: ich glaube das
[].slice.call
ist ein wenig Oldscool
wenn du die Zeile austauschst gegen:var elements = Array.from(document.querySelectorAll(".scrollanimation"));
ist es am Puls der Zeit ;)
November 28, 2024 at 4:01 pm in reply to: Animation starts when texts are visible in the browser #1472516nur bei Merging sucht man sich unter 4700 Zeilen den Affen. – aber ich fand ja jetzt deinen Fehler nachdem das Merging ausgestellt war.
November 28, 2024 at 3:53 pm in reply to: Animation starts when texts are visible in the browser #1472514aha – ich sehe den Fehler:
schau mal wo du das css eingesetzt hast:
@keyframes anim-lineDown
da fehlt hinten eine schließende geschweifte Klammer
dadurch ist das nachfolgende css ungültig:November 28, 2024 at 3:48 pm in reply to: Animation starts when texts are visible in the browser #1472512wo hast du dieses CSS eingefügt:
.scrollanimation { opacity:0; transition: opacity 5s ease; } .scrollanimation.sichtbar { opacity:1; }
November 28, 2024 at 3:20 pm in reply to: Animation starts when texts are visible in the browser #1472510PS : Lies mal bitte den Absatz oben bei : Enfold – Performance dort steht unter anderem :
HTTP/2 is optimized for using minified files and compression of files is no longer recommended: read more. Therefore since 5.7 by default minified files are selected.
daher empfehle ich auch eher die Minified Files zu nutzen.
November 28, 2024 at 3:17 pm in reply to: Animation starts when texts are visible in the browser #1472509nun ich kann im DOM sehen, das die Klasse “sichtbar” da ist wenn das Element im Viewport ist – und weg ist wenn nicht:
allerdings hast du das File Merging aktiv. Das behält manchmal ein einmal gesetztes css im “Zwischenspeicher”
Das wie oben beschreiben kann man allerdings bei Enfold – Performance ( in Deutsch steht da eventuell Leistung) erneuern lassen.November 28, 2024 at 2:59 pm in reply to: Animation starts when texts are visible in the browser #1472507ich sehe doch das es funktioniert – die Klasse sichtbar wird dynamisch eingefügt/entfernt.
nur das css ist noch nicht vorhanden.Eventuell musst du das Merging von Enfold neu laden. ( unter Perfomance ganz unten – switch setzen und “Delete Old CSS And JS Files?” ausführen)
November 28, 2024 at 2:29 pm in reply to: Animation starts when texts are visible in the browser #1472505vergiss nicht das css ins quick css zu setzen.
.scrollanimation { opacity:0; transform: translateX(-50%); transition: opacity 5s ease, transform 2s ease; } .scrollanimation.sichtbar { opacity:1; transform: translateX(0); }
November 28, 2024 at 2:01 pm in reply to: Animation starts when texts are visible in the browser #1472503eventuell kannst du noch abwarten bis das DOM geladen ist :
(das kann ich in den Developer Tools nicht testen)document.addEventListener("DOMContentLoaded", function() { var elements = [].slice.call(document.querySelectorAll(".scrollanimation")); if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype){ let elementObserver = new IntersectionObserver(function(entries, observer) { entries.forEach(function(entry) { if (entry.isIntersecting) { entry.target.classList.add("sichtbar"); } else { entry.target.classList.remove("sichtbar"); } }); }, { root: null, threshold: 0.1, rootMargin: "-100px 0px -100px 0px", }); elements.forEach(function(element) { elementObserver.observe(element); }); } });
November 28, 2024 at 1:58 pm in reply to: Animation starts when texts are visible in the browser #1472502oder damit man mal was sieht stattdessen:
.scrollanimation { opacity:0; transform: translateX(-50%); transition: opacity 5s ease, transform 2s ease; } .scrollanimation.sichtbar { opacity:1; transform: translateX(0); }
November 28, 2024 at 1:30 pm in reply to: Animation starts when texts are visible in the browser #1472500nimm jetzt mal – ich beobachte jetzt nur noch das Element selbst – nicht mehr den Wrapper – da du die klasse mal im Textblock hast – mal als heading – dann wieder im Footer – egal so geht es:
bei dem Plugin könnte es sein, dass man <script> mit dabei haben muss? das kann ich dir nicht beantworten deshalb mal so wie du es vorhin hattest:var elements = [].slice.call(document.querySelectorAll(".scrollanimation")); if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype){ let elementObserver = new IntersectionObserver(function(entries, observer) { entries.forEach(function(entry) { if (entry.isIntersecting) { entry.target.classList.add("sichtbar"); } else { entry.target.classList.remove("sichtbar"); } }); }, { root: null, threshold: 0.1, rootMargin: "-100px 0px -100px 0px", }); elements.forEach(function(element) { elementObserver.observe(element); }); }
und ins quick css dann:
.scrollanimation { opacity:0; transition: opacity 5s ease; } .scrollanimation.sichtbar { opacity:1; }
PS: 5s scheint mir recht lang
November 28, 2024 at 1:16 pm in reply to: Animation starts when texts are visible in the browser #1472498ich kann denke ich deutsch mit dir schreiben?
entferne mal bitte dein script. da du auch andere Texte die nicht im Textblock sind beieinflussen willst muss es noch ein wenig anders gemacht werden.
November 28, 2024 at 1:06 pm in reply to: Animation starts when texts are visible in the browser #1472496can you place instead :
const wrappers = document.querySelectorAll(".av_textblock_section"); const targets = document.querySelectorAll(".scrollanimation"); const animClass = ["sichtbar"]; const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { const currentIndex = Array.from(wrappers).indexOf(entry.target) if (entry.isIntersecting) { targets[currentIndex].classList.add(animClass); } else { targets[currentIndex].classList.remove(animClass); } }) }, { root: null, threshold: 0.1, rootMargin: "-120px 0px -100px 0px", }); wrappers.forEach(wrapper => { observer.observe(wrapper) });
you can change later the rootMargin to your needs.
PS: and sorry the selector on document.querySelectorAll should be with dot on classesNovember 28, 2024 at 12:52 pm in reply to: Animation starts when texts are visible in the browser #1472493dghdfgh
-
This reply was modified 7 months, 1 week ago by
Guenni007.
November 28, 2024 at 12:39 pm in reply to: Animation starts when texts are visible in the browser #1472490wo sind die Elemente, die die Klasse: scrollanimation haben
das sind die Text elemente ?
November 28, 2024 at 12:36 pm in reply to: Animation starts when texts are visible in the browser #1472489no – but your script had to be correct – see my hints above.
November 28, 2024 at 12:25 pm in reply to: Animation starts when texts are visible in the browser #1472483As mentioned above – i’m participant as you are – so i can not see private content messages.
November 28, 2024 at 12:23 pm in reply to: Animation starts when texts are visible in the browser #1472482by the way: not A One One
document.querySelectorA11 // guess you mean: document.querySelectorAll
and where is your “eintrag” set?
November 28, 2024 at 12:16 pm in reply to: Animation starts when texts are visible in the browser #1472480for example my snippet for those h2 headings goes to child-theme functions.php:
function observe_headings_on_homepage() { ?> <script type="text/javascript"> const wrappers = document.querySelectorAll(".av-special-heading"); const targets = document.querySelectorAll(".av-special-heading-tag"); const animClass = ["in-view"]; const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { const currentIndex = Array.from(wrappers).indexOf(entry.target) if (entry.isIntersecting) { targets[currentIndex].classList.add(animClass); } else { targets[currentIndex].classList.remove(animClass); } }) }, { root: null, threshold: 0.1, rootMargin: "-120px 0px -100px 0px", }); wrappers.forEach(wrapper => { observer.observe(wrapper) }); </script> <?php } add_action( 'wp_footer', 'observe_headings_on_homepage' );
November 28, 2024 at 12:08 pm in reply to: Animation starts when texts are visible in the browser #1472479may i see your page too? As participant i can not see private content area – so if it is possible to post here …
see here for example an enfold page with implementing Intersection Observer ( scroll to “Dienstleistungen” ) –
big advantage is that each time the objects comes into viewport – animation starts again.by the way all h2 headings are animated that way.
where did you “inject” your script? – via child-theme functions.php ?
or – do you know that there are different ways to insert that divider. Maybe that is an alternative for you to have not so big dividers on mobile devices.
see the same divider – one with “auto – defined by svg viewport” – and then set to max-height: 150px
the other is set to 150px height.https://webers-testseite.de/svg-divider/
have a look to smaller screens – on normal desktop screen width – both seems to be the same.
for the full-width mega-div you can try now:
#top #header .avia_mega_div { position: fixed; width: 96vw; left: 1.5vw !important; /*=== because of the scrollbar not 2vw ===*/ top: 120px; }
or maybe with background styling:
#top #header .avia_mega_div { position: fixed; width: 96vw; left: 1.5vw !important; top: 120px; background-color: rgba(255,255,255,0.8); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border-radius: 0 0 15px 15px !important; border: 1px solid #FFF; } #top #header .avia_mega_div ul { background-color: transparent; }
next release there will be for shrinking headers a variable value ( –enfold-header-height) which represents what it said – the dynamically header-height.
for then we can usetop: var(--enfold-header-height);
for the rest i will look again to your example page.
can you post the link to that example page?
Is your header a shrinking one?
-
This reply was modified 7 months, 1 week ago by
-
AuthorPosts