Forum Replies Created
-
AuthorPosts
-
November 28, 2024 at 12:52 pm in reply to: Animation starts when texts are visible in the browser #1472493
dghdfgh
-
This reply was modified 11 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.querySelectorAlland 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?
But how to declare a favorite? as a normal visitor i expect a button to set a favorite. ( by the way : as long i could not declare a favorite – i do not see that button ) – so i guess i had to be registered first.
ok – if i place those images with different links inside a text-block – i can force that behaviour by adding the link class: mfp-iframe and as rel: lightbox.
see the script – avia-snippet-lightbox.js –a[rel^="lightbox"]– is an autolink element (autolinkElements)Edit: a solution for masonry is shown on that test-page : https://webers-testseite.de/mixed-lightbox-content/
eventuell gehst Du bei diesem speziellen Iconbox Layout dazu über, das als Grid Layout zu gestallten; denn geh mal die responsiven Weiten des Elementes durch. Irgendwann wird es zu schmal.
Was ich meine ( jetzt mal nur für diesen Fall):
#top.postid-5503 #av-layout-grid-2 .avia-icongrid { margin: 0; padding: 0; gap: 0px; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); grid-auto-flow: row; } #top.postid-5503 #av-layout-grid-2 .avia-icongrid .av-icon-cell-item .avia-icongrid-flipback { padding: 0; } #top.postid-5503 #av-layout-grid-2 .avia-icongrid-flipbox .av-icon-cell-item .avia-icongrid-front .avia-icongrid-inner, #top.postid-5503 #av-layout-grid-2 .avia-icongrid-flipbox .av-icon-cell-item .avia-icongrid-flipback .avia-icongrid-inner { padding: 10px 3em; }Wenn das Layout mit seinem Inhalt dann steht , könnte man noch einstellen das die letzte Zeile sich unten zentriert.
However, the real reason for the appearance is that all boxes have the same height. This height is then determined by the one box with the image with the corresponding padding. We then have the same height for all the others. This makes it look like a large distance. If you create the seventh box with the same content as above, you will see that the distance is not that big.
nicht sichern sondern die default werte ändern. (verkleinern)
kannst du mal das Merging für css abstellen. Dann kann ich das leichter inspizieren.
PS: aber alle Höhen richten sich einheitlich nach dem größten Content. Und mit den o.a. paddings – ist das nunmal bei dem article mit dem Bild ca. 400px
Wenn alle Iconboxes bilder haben wird es sich nach dem dann größten Content richten.-
This reply was modified 11 months, 2 weeks ago by
Guenni007.
hm – seems to be hard to mix images with website in iframes in one gallery.
images and videos work from the scratch – if you choose “use custom link and fallback is image”.the easiest way would be: if devs could create a conditional input field as soon as you have selected lightbox as the destination, in which you can enter the mfp type as a link class – because:
By default, Magnific Popup has four types of content: image, iframe, inline, and ajax ( classes: mfp-image, mfp-iframe, mfp-inline, mfp-ajas) . There is no any “auto-detection” of type based on URL, so you should define it manually.
But that had to be tested if that will be enough to rule the grouping between mixed content.First: i think you have an additional lightbox plugin working on that page. Nivo ?
Next: you can declare for an image a custom-link – on lightbox setting there is the option “custom-link fallback is image”
(The disadvantage is that this link is saved globally for the image, i.e. not exclusively for this element.)on magnific popup there seems to be possibilities to mix content types in one gallery ( e.g. images and video in iframes ) – but i guess you had to decide what lightbox plugin you like to use. the embedded magnificPopup script can do that. ( i hope ;) )
i will test it now on my test page …November 25, 2024 at 9:51 am in reply to: Allgemeines “Media Queries Sylesheet” für ENFOLD verfügbar? #1472118Thanks @ismael : it’s just for info – and my snippet stock – Of course I know that all the Media Query Css rules remain unaffected.
Footer with #footer and #socket or only the #socket.
By the way what you are talking about is a fixed positioning – sticky (as a css technical term) is something different.
It will be difficult to move an entire footer (including the #footer with its widget content) to a fixed position without making it difficult to use on mobile devices.
To have only the #socket in that position is easier to get:#socket { position: fixed; bottom: 0; width: 100%; z-index: 999; }benefit of svg Logo
( that is created like that (good Grouping inside and well documented with ID’s and classes ))see here what happens to your Logo on scrolling or making the screenwidth smaller: https://webers-testseite.de/aussie/
Edit: ok – i now remove it from that example page – seems that there is no interest of having a sharp logo ;)
the benefit of placing the code to my example page is – you can copy the code with one click: if you hover the css code field – there is on top right a copy button
this is a not so complex Logo – why don’t you make a svg from it. The advantage is – that it is a vector based Graphic. So it is always sharp.
The font is, i guess Trade Gothic – so only the branding is to create:Download it from here – and forget about sub logo text etc.
https://webers-testseite.de/wp-content/uploads/IVEY-logo.svg
You can contact me again in five years. ;)
PS: if you like to have different colors – then open the svg with a good text editor (notepad ++ or sublime text) – you will see that the groups are ID’s and different colours are classes: – so it is easy to recolorise it:

on that flip box with the image – have you set up a min-height option?
on Element itself and Content – Grid Stylingand default (huge) padding is used on two containers.
.avia-icongrid .av-icon-cell-item .avia-icongrid-flipback { padding: 4em 3em; } .avia-icongrid-flipbox .av-icon-cell-item .avia-icongrid-front .avia-icongrid-inner, .avia-icongrid-flipbox .av-icon-cell-item .avia-icongrid-flipback .avia-icongrid-inner { padding: 4em 3em; }first – what kind of box ( enfold ) a column or a icon-box etc. here is an example with columns:
i gave a custom class to those columns : hoverstyle.
https://webers-testseite.de/aussie/November 22, 2024 at 7:57 am in reply to: Allgemeines “Media Queries Sylesheet” für ENFOLD verfügbar? #1471904Der Dev / Mods : I read about this filter in the link at Typography : avf_el_styling_responsive_font_size_skip
so i can skip the responsive settings for some ALB Elements : like headings:
function custom_responsive_font_size_skip( $skip, array $atts, \aviaShortcodeTemplate $sc_context, $font_id, $selector_container ){ if( $sc_context instanceof avia_sc_heading ){ return true; } return $skip; } add_filter( 'avf_el_styling_responsive_font_size_skip', 'custom_responsive_font_size_skip', 10, 5 );looking which elements do have this i read about another filter : avf_responsive_media_sizes
is it possible to redefine those settings?apply_filters( 'avf_responsive_media_sizes', array( 'av-desktop' => array( 990, 0 ), 'av-medium' => array( 768, 989 ), 'av-small' => array( 480, 767 ), 'av-mini' => array( 0, 479 ) ) );November 22, 2024 at 6:12 am in reply to: Allgemeines “Media Queries Sylesheet” für ENFOLD verfügbar? #1471903Wegen etwas höherer Browser Kompatibilität (so war es jedenfalls mal bei Safari und clamp) nutze ich für fluide font-size Definitionen die min/max Methode.
Siehe Link in Enfold Typography Sektion: https://spencermortensen.com/articles/typographic-scale/ wählte ich die musikalische Skala – und zwar einmal mit Faktor 2 und dann 3 ergeben sich folgende font-size Größen:
40-60, 36-50, 32-42, 28-34, 25-29, 22-24
was zu folgenden fluid Werten führt (ausgehend von einem viewport von 320px bis 1500px (Fluid-Font Calculator)
____
Due to slightly higher browser compatibility, I use the min/max method for fluid font-size definitions.
See link in Enfold Typography section: https://spencermortensen.com/articles/typographic-scale/ I chose the musical scale – once with factor 2 and then 3 the following font-size sizes result:
40-60, 36-50, 32-42, 28-34, 25-29, 22-24
which leads to the following fluid values (based on a viewport of 320px to 1500px (Fluid-Font Calculator)da Enfold selbst mit CSS Variablen arbeitet:
as Enfold itself works with CSS variables::root { --enfold-font-size-theme-content: 13px; --enfold-font-size-theme-h1: 34px; --enfold-font-size-theme-h2: 28px; --enfold-font-size-theme-h3: 20px; --enfold-font-size-theme-h4: 18px; --enfold-font-size-theme-h5: 16px; --enfold-font-size-theme-h6: 14px; }könnte man die mittels Filter überschreiben:
you could overwrite them using a filter:function my_avf_dynamic_css_after_vars( $output = '' ){ $output .= "\n"; $output .= ":root {\n"; $output .= "--enfold-font-size-theme-h1: min(max(40px, calc(2.5rem + (60 - 40) * ((100vw - 320px) / (1500 - 320)))), 60px);\n"; $output .= "--enfold-font-size-theme-h2: min(max(36px, calc(2.25rem + (50 - 36) * ((100vw - 320px) / (1500 - 320)))), 50px);\n"; $output .= "--enfold-font-size-theme-h3: min(max(32px, calc(2rem + (42 - 32) * ((100vw - 320px) / (1500 - 320)))), 42px);\n"; $output .= "--enfold-font-size-theme-h4: min(max(28px, calc(1.75rem + (34 - 28) * ((100vw - 320px) / (1500 - 320)))), 34px);\n"; $output .= "--enfold-font-size-theme-h5: min(max(25px, calc(1.5625rem + (29 - 25) * ((100vw - 320px) / (1500 - 320)))), 29px);\n"; $output .= "--enfold-font-size-theme-h6: min(max(22px, calc(1.375rem + (24 - 22) * ((100vw - 320px) / (1500 - 320)))), 24px);\n"; $output .= "--enfold-font-size-theme-content: min(max(16px, calc(1rem + (20 - 16) * ((100vw - 320px) / (1500 - 320)))), 20px);\n"; // p-tags $output .= "}\n"; return $output; } add_filter( 'avf_dynamic_css_after_vars', 'my_avf_dynamic_css_after_vars', 10, 1 );ich behielt mal die long-hand Version der min-max schreibweise – so wird deutlich wie die font-sizes berechnet werden.
I kept the long-hand version of the min-max notation – this makes it clear how the font sizes are calculated.um es dann global durchzusetzen dies in die quick css:
to then globally enforce this here in the quick css:body {font-size: var(--enfold-font-size-theme-content);} #top h1 {font-size: var(--enfold-font-size-theme-h1); } #top h2 {font-size: var(--enfold-font-size-theme-h2); } #top h3 {font-size: var(--enfold-font-size-theme-h3); } #top h4 {font-size: var(--enfold-font-size-theme-h4); } #top h5 {font-size: var(--enfold-font-size-theme-h5); } #top h6 {font-size: var(--enfold-font-size-theme-h6); }btw: on Layout Builder – Typography Input Fields – you can activate that switch to have:
“Activate to replace predefined selectboxes with font sizes with text fields to use custom units. Only recommended for experienced users who know, what they are doing. This is in active beta (since 5.0.1).”
– you then can insert those fluid values to that input field. e.g. for extremly big h1 headings (80-120px) etc.And this link is secret even though it is not a private link? Perhaps there are solutions that a friendly fellow participant could work out. ;)
I would create an external format in my image processing program and then place the images there so that they have the height and width corresponds to the true proportions. Here, unfortunately, we come to the probable fact that such a can will look lost next to the barrel.
see here : i put all images in the same outer image dimensions ( 400 x 600 )
and then inserted the individual images in the image program according to their size. As a result, the png’s all have the same size, but the contents are proportional to each other.download them here: https://webers-testseite.de/Kelly.zip
see – with code on the example page: https://webers-testseite.de/lunar-kitten/
if the place is too narrow the grids will autoflow – if you like to flow only to a 2/2 grid then we had to set a media query.
i set the image background to a color – so you can see that the images got the same outer dimensions.-
This reply was modified 11 months, 2 weeks ago by
Guenni007.
The easiest way to do this is if the images are in this ratio ;) – why force something via css that can already be created this way during creation.
-
This reply was modified 11 months, 1 week ago by
-
AuthorPosts


