Question: Obviously Java has a Access level [package-private](https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html) which achieved by not adding any explicit modifier.

But isn't there a way to explicitly add this modifier? It's a bit confusing that we need to **omit** access level when we want to use member in package only.

If there's no way, why package private decided to be a default level? 

For example if default level was public than we would more consciously define relevant access level.

This isn't duplicate of question of [why use it](https://stackoverflow.com/questions/28414803/java-default-access-level-package-private-access-why-it-is-used-for), because I know why, I just don't know why it's define implicitly and can't be defined explicitly.

**EDIT** 

You can define it explicitly by using Lombok's [@PackagePrivate](https://projectlombok.org/api/lombok/experimental/PackagePrivate.html)

> 
> Used to indicate the explicit intention for the annotated entity to have the package private access level. Currently used by FieldDefaults and Value to avoid having it make a field one of public, protected, or private.
> 
> 
> 

```
@PackagePrivate String thanksLombok;

```

Answer: 
You can do it like this...

```
<div class="myClass" />
<div class="myClass" />
<div class="myClass" />

.myClass:first-child {
  position: absolute;
  animation: shake-1 5s infinite;
  animation-timing-function: linear;
}
.myClass:nth-child(2) {
  position: absolute;
  animation: shake-2 5s infinite;
  animation-timing-function: linear;
}
.myClass:nth-child(3) {
  position: absolute;
  animation: shake-3 5s infinite;
  animation-timing-function: linear;
}

```
Best bet is to add an extra class to each div. 

So it's like:

```
<div class="myClass shake-lr"></div>
<div class="myClass shake-tb"></div>
<div class="myClass shake-dia"></div>

```

And then in your css/sass:

```
.myClass
  position: absolute
  animation-timing-function: linear
.shake-lr 
  animation: shake-1 5s infinite
.shake-tb
  animation: shake-2 5s infinite
// ... and so on

```