#cssgrid — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cssgrid, aggregated by home.social.
-
#Development #Overviews
CSS layout fundamentals · Master the core concepts behind CSS layouts https://ilo.im/16a1ic_____
#Layouts #Positioning #Stacking #CssGrid #CssFlexbox #BoxModel #Browsers #WebDev #Frontend #CSS -
Clip element on #scroll - a little pure #CSS demo I made on @codepen https://codepen.io/thebabydino/pen/vEGBOrg
Just scroll-driven animation magic 🪄✨ - no other tricks.
#cssScrollAnimation #code #coding #web #dev #webDev #webDevelopment #cssClipPath #cssGrid #cssLayout
-
How to use wa-grid with Vue
Last month, we explored using wa-card with Vue.js. In the final example, we created a grid layout using CSS, but Web Awesome also enables this with a WA component. Today, we’ll extend that example by integrating the WA component. Previously, we learned how to center content using Bulma and Bootstrap. WA provides a similar approach to these frameworks.
Web Awesome wants a basic grid to look like this:
<div class="wa-grid"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </div>You can get fancier with spans or gap definitions, but this is all you really need. So, what does the result look like?
CodePen Embed FallbackThe result looks very similar to what we did in the fourth wa-card example. The big difference is that it is more fully Web-Awesome-ized. We could end here, but we could also examine what it looks like with more data in the photos array. You might have guessed that the hard-coded examples come from JWS Pictures. When I created it, I ensured that all.json and all.xml were included so you can retrieve all the photos in your Vue app. If we add an onMounted() lifecycle hook, we can load the photos defined in the JSON file once the component has been mounted. Let’s see what that would look like.
CodePen Embed FallbackAdding all the photos doesn’t seem to affect the design. In fact, it looks pretty good. I don’t want to just dump photos onto the page, so let’s see what Array.prototype.sort() can do for us.
CodePen Embed FallbackNow, the images are sorted from newest to oldest rather than in the order they appear in the JSON file. The next step would be to sort and group the photos simultaneously. This way, it becomes clearer which photos belong to which batches. A photosByYear computed ref would allow for that.
CodePen Embed FallbackThe computed ref has properties for a year value and the photos taken in that year. Next time, we will see how we can further evolve this project.
First example: https://codepen.io/steinbring/pen/gbPJLLK/e3b93e220312e05d6c51444c22ed12ba
Second example: https://codepen.io/steinbring/pen/xbZNReX/9b05838c6096c00e08690c24900cd9be
Third example: https://codepen.io/steinbring/pen/GgqKjwM/22f21efec564bee348b1db9eb8dd90de
Fourth example: https://codepen.io/steinbring/pen/bNebwyx/5dadf66f9b55153a63a02d713f12ccc8
#CSSGrid #displayGrid #VueJs #WebAwesome -
#Development #Generators
Layoutit Terra · A terrain generator powered by HTML/CSS https://ilo.im/167vde_____
#3D #Landscapes #Terrains #Playgrounds #Games #WebDev #Frontend #HTML #CSS #CssGrid -
#Development #Generators
Layoutit Terra · A terrain generator powered by HTML/CSS https://ilo.im/167vde_____
#3D #Landscapes #Terrains #Playgrounds #Games #WebDev #Frontend #HTML #CSS #CssGrid -
#Development #Generators
Layoutit Terra · A terrain generator powered by HTML/CSS https://ilo.im/167vde_____
#3D #Landscapes #Terrains #Playgrounds #Games #WebDev #Frontend #HTML #CSS #CssGrid -
#Development #Generators
Layoutit Terra · A terrain generator powered by HTML/CSS https://ilo.im/167vde_____
#3D #Landscapes #Terrains #Playgrounds #Games #WebDev #Frontend #HTML #CSS #CssGrid -
#Development #Techniques
6 CSS snippets every front-end developer should know in 2023 · Toolbelt worthy, powerful, and stable CSS you can use today https://ilo.im/11pa5a_____
#WebDevelopment #WebDev #Frontend #CSS #ContainerQueries #ScrollSnap #CssGrid #CascadeLayers #LogicalProperties -
#Development #Techniques
6 CSS snippets every front-end developer should know in 2023 · Toolbelt worthy, powerful, and stable CSS you can use today https://ilo.im/11pa5a_____
#WebDevelopment #WebDev #Frontend #CSS #ContainerQueries #ScrollSnap #CssGrid #CascadeLayers #LogicalProperties -
#Development #Techniques
6 CSS snippets every front-end developer should know in 2023 · Toolbelt worthy, powerful, and stable CSS you can use today https://ilo.im/11pa5a_____
#WebDevelopment #WebDev #Frontend #CSS #ContainerQueries #ScrollSnap #CssGrid #CascadeLayers #LogicalProperties -
#Development #Techniques
6 CSS snippets every front-end developer should know in 2023 · Toolbelt worthy, powerful, and stable CSS you can use today https://ilo.im/11pa5a_____
#WebDevelopment #WebDev #Frontend #CSS #ContainerQueries #ScrollSnap #CssGrid #CascadeLayers #LogicalProperties