# Is there a way to reset CSS2D Position?

**URL:** <https://discourse.threejs.org/t/is-there-a-way-to-reset-css2d-position/47581>\
**Category:** Questions\
**Tags:** css2dobject\
**Created:** [February 2, 2023, 1:59pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-reset-css2d-position/47581 "2023-02-02T13:59:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wonderpets11](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/wonderpets11/32/32379_2.png) [@wonderpets11](https://discourse.threejs.org/u/wonderpets11)\
**Post date:** [February 2, 2023, 1:59pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-reset-css2d-position/47581/1 "2023-02-02T13:59:08Z")

</div>

Hi

Just asking if it’s possible to reset the location of the css2d div element?  
I have a div element text that’s following a sphere object. The sphere rotates at its own but when the div element is behind the sphere, it’s still visible. My option is to reset it the text position to its original. It still follows the sphere during rotation but when its `visible` is set to true, then I want to reset it back to original position.

`companyNotes.position.set(0, 1, 1)`

Any help?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 3, 2023, 4:31pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-reset-css2d-position/47581/2 "2023-02-03T16:31:37Z")

</div>

How about creating a new property in `userData` and then save the position for the restore?

```plaintext
 // do this once to create the new custom field
companyNotes.userData.originalPosition = new THREE.Vector3();

// save
companyNotes.userData.originalPosition.copy( companyNotes.position );

// restore
companyNotes.position.copy( companyNotes.userData.originalPosition );

```
