[フレーム]

Vue Tutorial

Vue HOME Vue Intro Vue Directives Vue v-bind Vue v-if Vue v-show Vue v-for Vue Events Vue v-on Vue Methods Vue Event Modifiers Vue Forms Vue v-model Vue CSS Binding Vue Computed Properties Vue Watchers Vue Templates

Scaling Up

Vue Why, How and Setup Vue First SFC Page Vue Components Vue Props Vue v-for Components Vue $emit() Vue Fallthrough Attributes Vue Scoped Styling Vue Local Components Vue Slots Vue v-slot Vue Scoped Slots Vue Dynamic Components Vue Teleport Vue HTTP Request Vue Template Refs Vue Lifecycle Hooks Vue Provide/Inject Vue Routing Vue Form Inputs Vue Animations Vue Animations with v-for Vue Build Vue Composition API

Vue Reference

Vue Built-in Attributes Vue Built-in Components Vue Built-in Elements Vue Component Instance Vue Directives Vue Instance Options Vue Lifecycle Hooks

Vue Examples

Vue Examples Vue Exercises Vue Quiz Vue Syllabus Vue Study Plan Vue Server Vue Certificate

Vue Examples


Introduction to Vue

Vue Basics Explained

The v-bind Directive

Bind a <div> element to a class Bind an <img> element to an image file Change the font size Change the font size in a different way Change the font size in yet a different way Change the background color Use v-bind and a JavaScript condition to change the background color Bind a <div> element to a class Bind a <div> element to a class, conditionally Bind a <div> element to a class, conditionally, with a data property Use the v-bind short hand Change opacity to reveal an image using an input range element Assign a class when images created with v-for are clicked We see that CSS rules set with class and v-bind:class are merged More than one class can be set with v-bind:class, with comma separation CSS rules are defined with v-bind:style, using both camel case and kebab case notation Classes are assigned with array syntax
v-bind Explained

The v-if Directive

v-if Explained

The v-show Directive

v-show Explained

The v-for Directive

v-for Explained

The v-on Directive

v-on Explained

Methods

Methods Explained

Event Modifiers

Event Modifiers Explained

The v-model Directive

v-model Explained

Computed Properties

Computed Properties Explained

Watchers

Watchers Explained

Templates

Templates Explained

SFC Pages

SFC Pages Explained

Components

Components Explained

Props

Props Explained

Emit

Emit Explained

Fallthrough Attributes

Fallthrough Attributes Explained

Scoped Styling

Scoped Styling Explained

Local Components

Local Components Explained

Slots

Slots Explained

Dynamic Components

Dynamic Components Explained

Teleport

Teleport Explained

HTTP Requests

HTTP Requests Explained

Template Refs

Template Refs Explained

Lifecycle Hooks

Lifecycle Hooks Explained

Provide/Inject

Provide/Inject Explained

Routing

Routing Explained

Animations

A <div> element is rotated with the CSS transition property A circular <div> element bounces left-to-right with the CSS @keyframes property A <p> element is toggled with a button A <p> element inside the <Transition> component fades out when it is removed A <p> element slides in and out when it is toggled A <p> element has separate background colors during 'enter' and 'leave' <p> elements are animated differently, using the name prop to differentiate the <Transition> components The after-enter event triggers a <div> element to be displayed A toggle button triggers the enter-cancelled event The appear prop starts the <p> element animation right after the page is loaded Flip through images with animation on 'enter' and 'leave'. A new image is added before the old image is removed Flip through images with animation on 'enter' and 'leave'. The mode="out-in" prevents new images to be added until the old image is removed Switching between components is animated
Animations Explained

Animations with v-for

Animations with v-for Explained

The Composition API

Composition API Explained

Track your progress - it's free!
×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

FORUM ABOUT ACADEMY
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.

AltStyle によって変換されたページ (->オリジナル) /