Pqina · Blogs
Blogs from Pqina on TechiSeek brings together work published by Pqina. Open any title to read it on the original site. New titles are added as they publish. 34 public listings.
- Using CSS Color-Mix() to lower anchor underline opacity (Pqina)A tiny code sample showing how to use the CSS color-mix function with currentColor to automatically lower the opacity of anchor underlines.
- Using Web Bluetooth To Read BBQ Temperature Sensor Data (Pqina)In this short read we’ll explore the Web Bluetooth API. We’ll connect with my Bluetooth BBQ thermometer. Then we’ll try to read out its dat…
- Building A Birthdate Input Custom Element (Pqina)In this article we look at a custom element that automatically orders input fields based on the browser locale. Useful for asking your cust…
- Creating CSS Spring Animations With The Linear Easing Function (Pqina)Designs and builds performant, responsive, and highly polished web components.
- Flexible CSS Colors With Custom Properties (Pqina)Let’s use CSS Custom Properties and calc() to create various CSS color effects, fasten your seatbelt, we’re going from 0 to 100 in 1.5 seco…
- Edit Images With Vue And Pintura (Pqina)In this quick tutorial we’ll build a Vue image editor using Pintura a powerful JavaScript image and video editor SDK.
- Set Fill Color of SVG Background-image (Pqina)A quick guide explaining how to change the color of an SVG when it’s used as a CSS background-image.
- Slim Image Cropper Alternative (Pqina)In this short tutorial we’ll use the PinturaInput Web Component to replace a Slim Image Cropper instance with the more powerful Pintura Ima…
- Use The JavaScript EyeDropper API To Select Colors On The Web (Pqina)The EyeDropper API just landed in Chrome Canary. In this is a mini tutorial we’ll quickly look at how to use it in our web apps to select c…
- Create Crisp Image Borders With CSS Pseudo Elements (Pqina)Transparent image borders can have contrast issues and look dull, let’s make them nice and crisp with this tiny CSS trick.
- Animating And Transitioning CSS Custom Properties (Pqina)This code animates a CSS property, and transitions a custom CSS property. The transition property is used in the animation. This combinatio…
- Updating CSS Border Radius When A Container Is Overflowing (Pqina)In this article we’ll create a container element that dynamically adjusts its border-radius when its contents overflows.
- Crop An Image With Canvas (Pqina)Cropping images in the browser can be done with the HTML5 canvas element. In this tutorial we’ll load an image from a local URL, crop the i…
- How To Disable Right Click With JavaScript (Pqina)In certain situations it might be useful to disable the browser right click context menu functionality. In this article I’ll quickly show y…
- Overlap Elements With CSS Grid Instead Of Position Absolute (Pqina)We can use CSS absolute positioning to overlap elements, but there’s some advantages to using CSS grid instead. Let’s explore using CSS gri…
- How To Clone A File With JavaScript (Pqina)A short code example showing how to create a clone (or copy) from a File object received from a file input element.
- Total Canvas Memory Use Exceeds The Maximum Limit (Pqina)You’re using the HTML Canvas Element in your new web app and decide to quickly test on iOS Safari. Suddenly your canvas isn’t drawn and the…
- Upload An Image With Node.js (Pqina)This short and concise guide shows how to set up image uploading with Node.js and Express.
- How To Upload An Image With PHP (Pqina)In this quick tutorial we set up a basic HTML form to upload images with PHP, we also explore how to secure our PHP script so it can’t be a…
- Annotate Images With JavaScript (Pqina)In this tutorial we use Pintura, a JavaScript image editor, to quickly create a JavaScript image annotation solution to annotate and decora…
- What's the JavaScript version of sleep (Pqina)There’s no sleep function in JavaScript, how can we make one?
- Convert An Image To A DataURL or Base64 String Using JavaScript (Pqina)In this short tutorial we explore 3 different JavaScript methods to convert an image into a Base64 string. We look at converting a File obj…
- Edit Video and Images With React (Pqina)In this short step by step tutorial we’ll set up Pintura Image Editor with its Video Editor extension to edit images and videos in the brow…
- Creating A Custom Svelte Media Query Store (Pqina)In this short read we create a custom Svelte store to listen for Media Query changes. Super useful for when we want to react to the user ch…
- Crop Images Before Upload With JavaScript (Pqina)In this 3 minute tutorial we use CropGuide, a JavaScript image cropper, to crop images before they’re uploaded to our server without making…
- Compress An Image Before Upload With JavaScript (Pqina)In this quick tutorial we’ll use JavaScript to compress images selected with a file input element. We’ll compress images and save them back…
- Drawing Wrapped Text With The HTML Canvas Element (Pqina)The HTML canvas element can draw text but it cannot wrap text. Text wrapping is complicated so in this tutorial, instead of breaking text l…
- How To Prevent Scrolling The Page On iOS Safari 15 (Pqina)If we show a modal on iOS we need to prevent events inside the modal from interacting with the page behind the modal. On a previous episode…
- Generate Social Image Covers With Eleventy And Node-Canvas (Pqina)This static blog is generated with Eleventy and all its social images are automatically generated with node-canvas. In this tutorial we’ll…
- Fix Google Search Console Mobile Usability Issues With A CSS Snippet (Pqina)Google Search Console sends Mobile Usability issues detected emails at random intervals, what’s going on and how to fix this?
- Fix HTML Video Autoplay Not Working (Pqina)You’ve added a video tag to your website, set the video source, but it won’t autoplay. Let’s fix it.
- How To Set The Value Of A File Input (Pqina)It’s always been impossible to set the value of a file input element with JavaScript, but this has changed last year and it’s now broadly s…
- Animating The Dialog Element Using View Transitions (Pqina)In this article we look at animating the element using the View Transition API. We’ll follow progressive enhancement so it’s only used when…
- Canvas Area Exceeds The Maximum Limit (Pqina)If there’s one thing I’m sure of it’s that Safari and the HTML canvas element aren’t sitting in a tree together. It’s 2022 and Safari still…