Design+Code logo

Quick links

Suggested search

Animation with Rotation and Mask

To animate the Mask Dash, follow these streamlined steps:

Creating States

  1. Initiate by accessing the States panel.
  2. Add a New State by clicking the "+".
  3. In Base State, navigate to Material/Gradient, setting the Angle to 208 and the middle color stop's opacity to 0%.
  4. For the new State, revert the Angle to -16 and the opacity to 100%.

Setting Up Events

  • Trigger the animation via the Event panel by selecting Start.

Defining Actions

  • Create a Transition targeting the Mask Dash layer, transitioning from Base State to the new state over 3 seconds, employing an Ease In Out motion.

Animation with Path

Enhancing the Large Progressive Ring involves a simple depth adjustment.

Creating States

  1. In the States panel, create a new state.
  2. For Base State, set the Path Extrusion Depth to 0.
  3. In the new State, adjust the Depth back to 0.63.

Setting Up Events and Actions

  • Similar to the Mask Dash, set up an event starting the transition from Base State to the new state with a 1-second delay, applying an Ease In Out motion over 3 seconds.

Animation with Rotation

Animating the Knob through rotation adds a tactile feel to the interaction.

Creating States

  • Repeat the process of creating a new state in the States panel, adjusting Path Extrusion Depth accordingly for both Base State and the new state.

Setting Up Events and Actions

  • Set up a Start event to initiate the transition, this time with a 2.5-second delay, ensuring a smooth transition over 1 second using an Ease In Out effect.

Animating the Button

Finalizing with the button animation adds an interactive element to our thermostat.

Creating States for the Button’s Border

  • Utilize the States panel to adjust the Material property Depth for both base and new states, paying attention to the pivot direction.

Setting Up Events

  • Target the main button component with four dots in the Event panel, adding a Mouse Down event with toggle mode.

Defining Actions

  • Define transitions for the button's border and shape, setting transitions from Base State to the new state with a 1-second duration, using Ease In Out and Spring motions for dynamic interaction.

By following these steps, we've animated various elements of our thermostat, adding depth and interaction to the design. Experiment with these animations to fine-tune and achieve the desired effects for your thermostat project.

BACK TO

Buttons and Components

READ NEXT

Create a 3D iOS App Icon

Templates and source code

Download source files

Download the videos and assets to refer and learn offline without interuption.

check

Design template

check

Source code for all sections

check

Video files, ePub and subtitles

Assets

Videos

Meet the instructor

We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.

Akson Phomhome

UI Designer

Designer at Design+Code.

icon

13 courses - 60 hours

course logo

AI Design with Ideogram

Meet Ideogram, an AI-powered image generation tool that takes your ideas and transforms them into stunning visuals. Whether you're a designer, marketer, or just a visual enthusiast, Ideogram simplifies the creative process. In this guide, we’ll walk you through step-by-step instructions to create beautiful logos, social media posts, and more.

1 hrs

course logo

Build a SwiftUI app with Claude AI

This comprehensive SwiftUI course combines cutting-edge AI assistance with hands-on development, guiding you through the process of transforming Figma designs into fully functional iOS applications. Leveraging Claude 3.5 Sonnet, you'll learn to efficiently generate and refine SwiftUI code, create reusable components, and implement advanced features like animations and responsive layouts.

9 hrs

course logo

Prototype and Code iOS apps in Figma and SwiftUI

Welcome to our course on designing a sleek wallet interface with Figma! You’ll learn to create a visually appealing and functional wallet interface using DesignCode and Apple UI Kits. Master prototyping, swipe gestures, carousel animations, overlays, and reusable components. Plus, explore a Figma plugin to easily transition from design to SwiftUI. By the end, you’ll create dynamic, user-friendly prototypes.

3 hrs

course logo

Create 3D UI for iOS and visionOS in Spline

Comprehensive 3D Design Course: From Basics to Advanced Techniques for iOS and visionOS using SwiftUI

3 hrs

course logo

3D UI Interactive Web Design with Spline

Learn to create 3D designs and UI interactions such as 3D icons, UI animations, components, variables, screen resize, scrolling interactions, as well as exporting, optimizing, and publishing your 3D assets on websites

3 hrs

course logo

Design and Prototype for iOS 17 in Figma

Crafting engaging experiences for iOS 17 and visionOS using the Figma design tool. Learn about Figma's new prototyping features, Dev Mode, variables and auto layout.

6 hrs

course logo

Design and Prototype Apps with Midjourney

A comprehensive course on transforming Midjourney concepts into interactive prototypes using essential design techniques and AI tools

8 hrs

course logo

Web App Design using Midjourney and Figma

Get UI inspirations from Midjourney and learn UI design, colors, typography as a beginner in Figma

2 hrs

course logo

UI Design for iOS 16 in Sketch

A complete guide to designing for iOS 16 with videos, examples and design files

3 hrs

course logo

UI Design Android Apps in Figma

Design Android application UIs from scratch using various tricks and techniques in Figma

2 hrs

course logo

UI Design Smart Home App in Figma

Design a Smart Home app from scratch using various tricks and techniques in Figma

2 hrs

course logo

UI Design Quick Apps in Figma

Design application UIs from scratch using various tricks and techniques in Figma

12 hrs

course logo

Figma Handbook

A comprehensive guide to the best tips and tricks in Figma

6 hrs