SuperHi
SuperHi
  • 121
  • 314 807
Weather-aware websites: How to add weather data and styling to a website using Javascript
In this tutorial, Rik will show you how to integrate the Open Meteo API feed into your very own website so you can add your own weather data and theme!
00:00 Intro
00:26 HTML and CSS
01:41 How does the Open Meteo API work?
03:45 Showing the temperature
10:57 Showing the current weather
16:28 Updating style based on weather
20:32 Outro
Links:
open-meteo.com/
Demo:
superhi-videos.s3.amazonaws.com/tutorials/blueprint-weather/index.html
Download:
superhi-videos.s3.amazonaws.com/tutorials/blueprint-weather.zip
You can follow Rik and SuperHi at:
riklomas
superhi_
hisuperhi
riklomas
www.superhi.com
Переглядів: 1 956

Відео

The modern way to add animation on scroll with Javascript and CSS
Переглядів 8 тис.Рік тому
In this tutorial we talk about how to use the modern IntersectionObserver object in Javascript to implement animation on scroll whenever tags are in view. 00:00 Intro 00:43 Intersection Observer 10:58 Adding CSS 17:23 Optional animation 18:46 Outro Demo: superhi-videos.s3.amazonaws.com/tutorials/animate-on-scroll/index.html Download: superhi-videos.s3.amazonaws.com/tutorials/animate-on-scroll.z...
Create a pro-level 3D site, using Three.js, Motion One + GLSL shaders, with an award-winning coder.
Переглядів 4,8 тис.Рік тому
In this project, award winning coder and founder of SuperHi, Rik Lomas, will show you how to create your very own professional-level 3d website using tools such as Three.js, Motion One, GLSL shaders, Vite build system, HTML and CSS, and more! Inspired by the award-winning Office for Future Furnishing site, Normal Sneakers is using several cutting edge techniques to achieve an effective 3d web e...
How Apple do scroll-based video scrubbing using CSS and Javascript
Переглядів 10 тис.Рік тому
How do Apple make their landing pages look like they're videos that play as you scroll? Well, that's because that's exactly what they are! In this tutorial, Rik will show you how to add in video scrubbing based on your users' scroll position! 00:00 Intro 00:50 HTML and CSS 06:40 Javascript 16:43 Outro Links: www.apple.com/macbook-air-13-and-15-m2/ Demo: superhi-videos.s3.amazonaws.com/tutorials...
Scroll animations! How to add a flowing path like the Lusion site with SVG and Javascript
Переглядів 11 тис.Рік тому
As seen on the new Lusion site, scroll animations such as a path that grows as you scroll down a path are effective web design techniques. In this tutorial, Rik shows you how to add your own SVG paths that fill in as you scroll! 00:00 Intro 00:50 HTML and CSS 04:28 Image to SVG 07:06 Javascript 20:11 Outro Reminder that if you're wanting a more structured approach to learning creative skills, c...
How to make a springy font weight effect with Javascript and variable typefaces
Переглядів 1,6 тис.Рік тому
Is it springy font weight? Magnetic type? Or something else completely... any way you call it, it's a great typographic effect that you can add with a little bit of Javascript and a variable font! Even if you don't particularly like this effect, seeing how it's made will let you know how other similar effects using mouse movement are created. 00:00 Intro 00:46 Let's code 21:41 Outro Links: twit...
How the best sites are made: The Studio's award-winning wonky grid slideshow
Переглядів 2,1 тис.Рік тому
Sometimes even the best sites can bamboozle the professionals. In this tutorial, we'll explain how The Studio built their award-winning 'wonky' grid slideshow. It's a fantastic effect and while it seems like it could be days of work, it's actually more straight forward than you may imagine! Rik explains how to do it! 00:00 Intro 00:48 HTML CSS structure 05:54 Setting up a slideshow 13:25 Fading...
How to add complex image masking to website images with CSS clip-path and Figma
Переглядів 8 тис.Рік тому
You may have seen image masks on sites like Abbotsford Convent or Creative Lives in Progress - of course you can prepare images manually but why not make it easy and flexible by letting CSS do the work! In this tutorial, Rik will show you how to add both simple and complex image masking by taking a Figma prepared SVG and implementing with CSS clip-path. 00:00 Intro 00:33 Basic mask shapes 03:26...
How to add endless scroll to a website using Javascript
Переглядів 2,1 тис.Рік тому
A modern web design technique involves creating a website with the illusion of endless scrolling, making it seem as if the page never ends. This engaging feature requires only a few lines of Javascript to implement. Rik is here to guide you through the process! 00:00 Intro 00:56 Cloning with Javascript 04:29 Scroll direction 11:15 CSS improvements 12:34 Outro Links: photographs.pm/ juliavolkmar...
How a top fashion site was made: Nolook Inc's mouse follow effect with CSS and Javascript
Переглядів 1,9 тис.Рік тому
In this tutorial, we discuss the top Japanese fashion brand, Nolook Inc., and explore how the effect on the homepage is created. There are several components that contribute to the impressive mouse-follow effect, which gives the page a dynamic presence. We'll break it down step by step, from understanding the HTML structure to examining how individual 'tween' states lend a more natural feel. 00...
How award-winning sites are made: the Sticky Split Layout, as seen on Useful Books and SuperHi Plus
Переглядів 2,1 тис.Рік тому
We'll demonstrate how to create the sticky split layout, a feature seen on many popular websites. This layout allows one side of a webpage to track alongside the other as you scroll. Achieving this requires just a touch of CSS! Rik is here to show you how to do it. 00:00 Hello! 01:11 How to code 05:21 Outro Demo: superhi-videos.s3.amazonaws.com/tutorials/useful-books/index.html Links: www.usefu...
How award-winning sites are made: Midnight's mouse trail effect
Переглядів 5 тис.Рік тому
The Midnight site has been featured on some of the best web design galleries such as SiteInspire and one of the lovely features on it is the long mouse trail effect. In this video, we talk about how that effect was made! Check out the Midnight site over at midnight.agency/ 👉 One thing I missed in the vid! Add pointer-events: none; to the svg's CSS so that you can click through it! Demo: superhi...
How award-winning sites are made: Torque Editions panning layout
Переглядів 1,7 тис.Рік тому
Award-winning site Torque Editions has a beautiful design that includes some intricate techniques that build up to make a panning, map-style layout. In this tutorial, we cover how a site like this actually work and build our own version of it. Check out their site over at torquetorque.net/ Torque Editions was designed and coded by Jake Dow-Smith Studio - jakedowsmith.com/ 00:00 Intro 00:24 Pann...
Five CSS @media queries you might not know, that will improve your users' lives
Переглядів 498Рік тому
You may have heard of @media queries in CSS for changing the layout when on mobile, but did you know there's more than just that? In this video, we'll talk about five different media queries that you may not have heard about which are great for accessibility and user experience. Demo: superhi-videos.s3.amazonaws.com/tutorials/mq/index.html Download: superhi-videos.s3.amazonaws.com/tutorials/mq....
How to create a resizable column layout with Javascript
Переглядів 1,5 тис.Рік тому
A commenter asked how the resizable layout on the Kong&Ha site worked - you ask and you shall receive! In this tutorial, we show you how to make a custom resizable layout with Javascript. 00:00 Intro 00:40 Let's code Links: www.duokongha.com/projects_kongha-en/project-duo-kong-ha-01 Images by: unsplash.com/@dentrushtin unsplash.com/@jeremyliew Demo: superhi-videos.s3.amazonaws.com/tutorials/res...
How to improve your web typography with just a few lines of CSS
Переглядів 903Рік тому
How to improve your web typography with just a few lines of CSS
Typescript 101 - Learn to transition from Javascript in just 20 minutes
Переглядів 1,3 тис.Рік тому
Typescript 101 - Learn to transition from Javascript in just 20 minutes
Dynamic Color Slider: Create a website that adjusts its theme in real-time with CSS and Javascript
Переглядів 1,7 тис.Рік тому
Dynamic Color Slider: Create a website that adjusts its theme in real-time with CSS and Javascript
How to add dark mode to your website with CSS variables
Переглядів 1,4 тис.Рік тому
How to add dark mode to your website with CSS variables
How to add a frosted glass effect to your website
Переглядів 3,1 тис.Рік тому
How to add a frosted glass effect to your website
Draggable, resizable + stackable panels using Javascript
Переглядів 3,2 тис.Рік тому
Draggable, resizable stackable panels using Javascript
What's the difference between a typeface and a font
Переглядів 9 тис.2 роки тому
What's the difference between a typeface and a font
Using Ligatures
Переглядів 7 тис.2 роки тому
Using Ligatures
Scaling fonts for different screen sizes
Переглядів 3 тис.2 роки тому
Scaling fonts for different screen sizes
Pairing Type
Переглядів 12 тис.2 роки тому
Pairing Type
How to make fonts work for different languages
Переглядів 10 тис.2 роки тому
How to make fonts work for different languages
How and when to control line height
Переглядів 7 тис.2 роки тому
How and when to control line height
Choosing a typeface for body text
Переглядів 11 тис.2 роки тому
Choosing a typeface for body text
Adding web fonts to your site with Google Fonts
Переглядів 22 тис.2 роки тому
Adding web fonts to your site with Google Fonts
How to get started with variable fonts
Переглядів 12 тис.2 роки тому
How to get started with variable fonts

КОМЕНТАРІ

  • @klemenivanusic
    @klemenivanusic 4 дні тому

    const svg = document.querySelector('svg.squiggle'); const path = svg.querySelector('path'); // Get the total length of the path const pathLength = path.getTotalLength(); // Initialize the path to be hidden path.style.strokeDasharray = `${pathLength}`; path.style.strokeDashoffset = `${pathLength}`; const scroll = () => { const distance = window.scrollY; const totalDistance = document.body.clientHeight - window.innerHeight; const percentage = distance / totalDistance; // Animate the strokeDashoffset to reveal the path path.style.strokeDashoffset = `${pathLength * (1 - percentage)}`; }; // Run the scroll function on page load to set initial values scroll(); // Add the scroll event listener window.addEventListener('scroll', scroll); This is the better version of the code. Try it. Path basically starts from 0 when page is loaded and it is not drawn yet, and when you reach the bottom of the page, the path reaches it's 100% length. It works even if you set it's boundaries to a specific container, just set the environment for the path in the totalDistance variable

  • @sheersha
    @sheersha 16 днів тому

    Anyway to add this effect to youtube header?

  • @VictorGurov-o9o
    @VictorGurov-o9o 17 днів тому

    A great tutorial, thank you! And of course: "Cube!" :)

  • @everydayslang-645
    @everydayslang-645 21 день тому

    Really great. Easy to follow. Works like a charm... but what if you wanted more than one video like this on a page?

  • @stevevoltmer2964
    @stevevoltmer2964 23 дні тому

    What about responsiveness? If you have content on the page and resize the window the SVG resizes, but not the content. You end up with the path moving over important content.

  • @thailonlucasart
    @thailonlucasart 25 днів тому

    I discovered your videos today! They are amazing!!!

  • @stevevoltmer2964
    @stevevoltmer2964 Місяць тому

    How would you do this using the intersectionObserver API instead of scroll?

  • @monicaalyssa7195
    @monicaalyssa7195 Місяць тому

    Thank you! This was super helpful!!!!

  • @AmieDesign_2022
    @AmieDesign_2022 Місяць тому

    Thanks for the video, would love to know what font is it at the beginning of the video, thx!!

  • @ganeshbhandarkar6074
    @ganeshbhandarkar6074 Місяць тому

    where to download superhi editor

  • @PlantitaLabs
    @PlantitaLabs Місяць тому

    Thanks so much! Had been procrastinating adding on-scroll animations to my html/css website because I thought it would take longer to learn, but you made this sooo simple for me to learn and implement! ty ty

  • @EARTH38221
    @EARTH38221 Місяць тому

    how to create that slider

    • @EARTH38221
      @EARTH38221 Місяць тому

      got it input type="range" css input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient( needed colors ); }

  • @yingyho4
    @yingyho4 Місяць тому

    How can we add a toggle button for users to switch between light and dark modes manually, instead of relying on their system preferences?

  • @TakashiHirakawa-v4x
    @TakashiHirakawa-v4x 2 місяці тому

    What are the reasons that you use <a> tag for the handle?

  • @maazahsan1800
    @maazahsan1800 2 місяці тому

    Cna anyone work on the section look like video effect section in lusion website?

  • @Jake-dq2xw
    @Jake-dq2xw 2 місяці тому

    This was fantastic thanks!

  • @i1r9e9n7e
    @i1r9e9n7e 2 місяці тому

    Hi! Thanks for the tutorial but I'm having some issues when it comes to upload images on the web editor. I think it's not working propertly uploading documents :S

    • @i1r9e9n7e
      @i1r9e9n7e 2 місяці тому

      And also window.pageYOffset it's deprecated now :S

  • @SteveHart282
    @SteveHart282 2 місяці тому

    How do you achieve the gradient they have on Lusion using an SVG? Great video!

  • @mig8447
    @mig8447 2 місяці тому

    What about multi-panel resizing (3 or more)

  • @JosephM1M5A4
    @JosephM1M5A4 2 місяці тому

    Thank you!

  • @Goeinavund
    @Goeinavund 2 місяці тому

    Such an underated channel you deserve way more subscribers, I will always love the way you explain these complex matter into easy to understand concepts. keep doing what ur doing its awesome!

  • @jmg9509
    @jmg9509 2 місяці тому

    I wish you would’ve shown if it was responsive...

  • @ShrutikaSh
    @ShrutikaSh 3 місяці тому

    i tried, this i works, love it, but how to make it smoot, the video playing is kind of choppy :(

  • @aminemajdi1248
    @aminemajdi1248 3 місяці тому

    Thank you very much

  • @CoderDalower
    @CoderDalower 3 місяці тому

    Very helpful video. Thanks a lot

  • @clangsison
    @clangsison 3 місяці тому

    learned a lot from this tutorial, thank you!

  • @gilsonconceicao5201
    @gilsonconceicao5201 3 місяці тому

    Very nice. Thanks

  • @jv-wd4po
    @jv-wd4po 3 місяці тому

    hey so i have an issue when there is a border-radius applied on the shapes. They appear huge on the site. Do you know any fix for this?

  • @Pywyoyuyp
    @Pywyoyuyp 3 місяці тому

    Thank you so much, I really enjoyed this tutorial. But I have a problem and that is when I scroll to the bottom of the page , when the line finishes drawing itself, it disappears. When I scroll a little up, it is again there, scrolling itself backways as it should. but i don't want it to disappear from my view. How to fix this?

  • @jesperandreassen120
    @jesperandreassen120 4 місяці тому

    Great video! How would you go about having the animation "bounce" the end of the stroke when the user stops scrolling?

  • @yashgaurav8499
    @yashgaurav8499 4 місяці тому

    cube🧊

  • @cats_in_disguise
    @cats_in_disguise 4 місяці тому

    cube!

  • @playinhertz
    @playinhertz 4 місяці тому

    Your portfolio is really amazing. Can you make a video on how you made it . Pls much requested

  • @riteshkc814
    @riteshkc814 5 місяців тому

    thanks been scratching my head for hours to implement a design 🥴🥴

  • @安田胡桃
    @安田胡桃 5 місяців тому

    Thank you so much!!! This help a lot

  • @Strix_sqli
    @Strix_sqli 5 місяців тому

    i dont think they did it with svg on their website

  •  5 місяців тому

    Nice video, however it does not look good on mobile viewport

  • @SarahSCampos
    @SarahSCampos 5 місяців тому

    Thank you so much, that was exactly what I needed!

  • @MrAbbo11
    @MrAbbo11 5 місяців тому

    you are an excellent teacher and clearly a very smart man as you distill things in a way that is easily accessible. Thank you!

  • @mikefrancis9424
    @mikefrancis9424 5 місяців тому

    This was awesome - thank you! I had a lot of fun repurposing this for a remix app!

  • @RatedPR
    @RatedPR 6 місяців тому

    This is amazing, exactly what I was trying to learn to do, really good explanations too, will subscribe

  • @asifreza23
    @asifreza23 6 місяців тому

    Thank you so so so so so so so so so so so so so so so much!!!!

  • @sadohkoo
    @sadohkoo 6 місяців тому

    Super helpful video, thanks!

  • @jennyvan2409
    @jennyvan2409 6 місяців тому

    this is amazing, there are not alot of videos on youtube that covers creative coding ideas as like urs so thank you sm for this!! can i ask if i wanted to replace the panels by purely images in divs that can be draggable, resize and stackable, is it possible to approach this idea in reference to your video? thanks in advance:)

  • @MillerThriller
    @MillerThriller 6 місяців тому

    Can this be replicated into wix studio? I’ve been trying to figure this out forever! Any help is greatly appreciated and compensated if needed.

  • @HuyenNguyen-bb3cg
    @HuyenNguyen-bb3cg 6 місяців тому

    Thank you so much! Simple but powerful JS and CSS techniques

  • @BrunoRodriguesSantos-wl4cj
    @BrunoRodriguesSantos-wl4cj 7 місяців тому

    I love your videos. Do you mind sharing the tool/tools you use to record your screen for the video?

  • @onion_13
    @onion_13 7 місяців тому

    @SuperHi I tried that and it did make it endless, but between each repeating section, there was an ugly space between them. How do you fix it?

  • @piskanaft
    @piskanaft 7 місяців тому

    thank you man

  • @plus-wh1uf
    @plus-wh1uf 7 місяців тому

    Can I have a look at the source code in the instructional video? Thank you very much