Background Image not expanding with it's parent - css

i am currently doing a challange on frontend mentor but i have a problem with the background images i used to create the curved sections, if you go to the developer's page, and expand the screen to let's say 2000px, the curved section do not expand
A picture of what i am describing
The code to the github repository is https://github.com/Nadine-Green/Huddle-Landing-Page-With-Curved-Sections, i was thinking of using it as a direct image instead of it being a background, but i just wanted to hear from you all first.

I checked your GitHub repository and couldn't find the specific code referring to your attached screenshot containing curved background images.
Anyways refer to this it will help you take a better understanding of how to use background images properly on all screens (responsive).
If you are able to share the specific code snippet you are referring to with your question I would be able to help you further on.

Related

How can I create a hop up image effect with Swiper?

Currently, I'm browsing some pages and I found that there's a page where the design is very pleasing to me. So I'm trying to replicate it, but unfortunately that I can't figure it out due to my lack of CSS skills.
So here's how that page work:
Whenever the class is active, it'll hop up a bit (the page I'm looking at is using Swiper, too!)
But however, the Hop-up image will go out of the box of Swiper
And what I'm doing right now, there's a box just like that page, but the image or anything else if it's larger than the current box, it'll be cut. I can't make it go outside of the Swiper's box.
Here's how I'm currently doing it, I made a quick dataSample and then mapped it, get the current slide to have the active class, and then CSS it. Any help is appreciated, many thanks.
I've left comment on what I'm doing in the CSS at CodeSandbox.
Code: CodeSandbox - Trying to create Hop-up image using Swiper

Interactive SVG in WordPress

I've designed and coded an interactive SVG that I've had to implement as HTML in WordPress because it only acts as a useless static image if it's entered as an SVG in an image block.
So far, that means that it's not responsive and loads at full size on a phone. I want people to see it in full, straight away, not zoom out to see it.
Is there another way to make it work without being an HTML dump? And even as code, how would I reduce it to fit screen sizes? Bearing in mind that my brain may implode if you suggest coding breakpoints or something like that.
I'm using a Blocksy child theme with no page builder.
The code itself works fine so there seems no point in me pasting a shortened version of the code. The page is here, if that helps.
Www.orderaround.co.uk
Right, I've fixed it myself. All I needed to do was remove the width and height specifications from the beginning of the svg code. It now fits to whatever container it's being displayed in.

Magnolia image variation set the crop position

In Magnolia, I believe that with image variations if you set crop to true the crop position is center by default. Eg. crops the top and the bottom equally. However, I would like to create a version that only crops from the top or from the bottom (or from left / right). This is very easy to do in Wordpress, but I can't find any documentation for Magnolia.
relevant links
https://documentation.magnolia-cms.com/display/DOCS57/How+to+work+with+images+using+imgfn
https://documentation.magnolia-cms.com/display/DOCS53/Imaging+module
Found this on google groups
https://groups.google.com/a/magnolia-cms.com/forum/#!searchin/dev-list/crop%7Csort:date/dev-list/duMR1ePQHEk/lJK4_d-1AwAJ
Hey guys,
Currently the magnolia imaging module cropping and resizing is working
very nicely for us. I'm implementing responsive images, but would
like responsive header images as well (which means I want to set a
focal point on the images) --> for example; focus on top right and
then crop image accordingly.
What JAVA class would I have to change to edit the standard behaviour
of the cropping focussing on the center of the image?
I already looked into this java operation:
[url]https://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/modules/magnolia-imaging/3.1.4/apidocs/info/magnolia/imaging/operations/cropresize/AutoCropAndResize.html#getEffectiveTargetSize(java.awt.image.BufferedImage,
info.magnolia.imaging.operations.cropresize.Coords,
info.magnolia.imaging.ParameterProvider)[/url]
I stumbled upon this while looking for topics regarding the Focal Point extension for Magnolia which is supposed to do exactly what you are planning to implement yourself.
Maybe this will help you: https://wiki.magnolia-cms.com/display/EX/Focal+Points#FocalPoints-Installation
Apart from that, the default class that does the Resizing is
info.magnolia.templating.imaging.variation.SimpleResizeVariation
This is mentioned briefly in the Magnolia documentation
https://documentation.magnolia-cms.com/display/DEV/Scaled+image+quality?focusedCommentId=82122990#comment-82122990

Creating the thumbnails for an image gallery

I am a back-end developer and I'd like to create a little website using angular and boostrap.
I would like to create a galerie, and I have been looking around to see how it's done. I found a correct example on the following link : https://blueimp.github.io/Bootstrap-Image-Gallery/
In that case, the images are taken from flickr api, which sends 2 different pictures (small and large). The small one is the thumbnail, and when you click on it, it opens the large one.
My question is the following one : let's say I have all my images of different sizes, and that I would like to have thumbnails of those (same size, but responsive !) to create my gallery, what would be the way to do that? With css only?
Create parent <div> with fix width then add img inside by applying width:100% on image and height:auto. Please try to implement the example you found and if you find any issues post with your code.

css for wrapping one image and several links inside that image

i have seen several websites which does this including weheartit.com,tumblr flipkart .
when we place cursor on images it shows several additional links like comment,share,like etc however when that image is clicked it takes to some other links.
here are few links which i am interested if anyone can guide for this type of css formatting it will be a great help.
place ur mouse on any of the offers like electronic offers etc you can see share image will come over images
http://www.flipkart.com/offers?otracker=hp_widget_banner_0_image
go to any image you will see nice css effects and details will appear once the cursor goes above images here
http://weheartit.com/?page=1
please give sample example with one image atleast
You may check this out. The concept is called mouse over/hover effects, You can search on Google and find many similiar examples.
Check the following example from css-tricks:
Slide-in Captions
You should find the code within the example sites you provided in your description. For the site http://www.flipkart.com/offers?otracker=hp_widget_banner_0_image , the name of the div that contains the share contents is sharebox.
The CSS file that contains the styling and CSS effects for sharebox is the following:
http://img6a.flixcart.com/www/prod/lego-da812168-nogz.css
Search that for sharebox and try to figure out how they do it.

Resources